jcbantuelle/dominion-meteor

View on GitHub
app/cards/lib/project.js

Summary

Maintainability
A
0 mins
Test Coverage
Project = class Project {

  name() {
    return _.startCase(this.constructor.name)
  }

  image() {
    return _.snakeCase(this.constructor.name)
  }

  type_class() {
    return 'project'
  }

  to_h() {
    return {
      name: this.name(),
      image: this.image(),
      types: 'project',
      wide: true,
      cubes: [],
      coin_cost: this.coin_cost()
    }
  }
}