Method: Iprofiler::Mash.from_json
- Defined in:
- lib/iprofiler/mash.rb
.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 |