Class: Polytrix::Dash

Inherits:
Hashie::Dash
  • Object
show all
Includes:
Hashie::Extensions::Coercion
Defined in:
lib/polytrix/core/hashie.rb

Direct Known Subclasses

Challenge, ChallengeResult, ManifestSection

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Dash

Returns a new instance of Dash.



9
10
11
12
# File 'lib/polytrix/core/hashie.rb', line 9

def initialize(hash = {})
  mash = Hashie::Mash.new(hash)
  super mash.to_hash(symbolize_keys: true)
end