aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/common/domain/Label.scala
blob: 221421693b89090136017faaccaac6044cd9dafc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package xyz.driver.common.domain

import xyz.driver.common.logging._

case class Label(id: LongId[Label],
                 categoryId: LongId[Category],
                 name: String,
                 description: String)

object Label {
  implicit def toPhiString(x: Label): PhiString = {
    import x._
    phi"Label($id, categoryId=${Unsafe(categoryId)}, name=${Unsafe(name)}, description=${Unsafe(description)})"
  }
}