jcbantuelle/dominion-meteor

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

Summary

Maintainability
A
0 mins
Test Coverage
Hex = class Hex {

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

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

  type_class() {
    return 'hex'
  }

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