Class: Iprofiler::Mash

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

Class Method Summary collapse

Class Method Details

.from_json(json_string) ⇒ Object

a simple helper to convert a json string to a Mash



8
9
10
11
# File 'lib/iprofiler/mash.rb', line 8

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