jcbantuelle/dominion-meteor

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

Summary

Maintainability
B
5 hrs
Test Coverage
State = class State {

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

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

  type_class() {
    return 'state'
  }

  victory_points() {
    return 0
  }

  point_variable() {
    return false
  }

  to_h() {
    return {
      name: this.name(),
      image: this.image(),
      wide: true,
      types: 'state'
    }
  }
}