Class: ShipHero::Base

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Hashie::Extensions::Dash::Coercion, Hashie::Extensions::Dash::PropertyTranslation
Defined in:
lib/ship_hero/models/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/ship_hero/models/base.rb', line 8

def initialize(hash = {})
  # ensure we symbolize keys 
  super(Hashie.symbolize_keys!(hash))
end