Class: WhitLi::Mash

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/whit_li/mash.rb

Class Method Summary collapse

Class Method Details

.from_json(json_string) ⇒ Object



6
7
8
9
# File 'lib/whit_li/mash.rb', line 6

def self.from_json(json_string)
  result_hash = ::MultiJson.decode(json_string)
  new(result_hash)
end