Newer
Older
GitBucket / src / main / scala / gitbucket / core / api / ApiPusher.scala
@Naoki Takezoe Naoki Takezoe on 1 Apr 2018 235 bytes Apply scalafmt
package gitbucket.core.api

import gitbucket.core.model.Account

case class ApiPusher(name: String, email: String)

object ApiPusher {
  def apply(user: Account): ApiPusher = ApiPusher(name = user.userName, email = user.mailAddress)
}