Skip to content

Commit

Permalink
alerts-server: Add optional currencyName to Book model
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed May 14, 2018
1 parent 896c6ff commit b10aa84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerts-server/app/com/alexitc/coinalerts/models/Book.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.alexitc.coinalerts.models

case class Book(market: Market, currency: Currency) {
case class Book(market: Market, currency: Currency, currencyName: Option[CurrencyName] = None) {
val string: String = s"${market.string}_${currency.string}".toUpperCase
}
object Book {
Expand Down

0 comments on commit b10aa84

Please sign in to comment.