jcbantuelle/dominion-meteor

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

Summary

Maintainability
B
4 hrs
Test Coverage
Boon = class Boon {

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

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

  type_class() {
    return 'boon'
  }

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