Class: Iprofiler::Mash
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Iprofiler::Mash
- Defined in:
- lib/iprofiler/mash.rb
Class Method Summary collapse
-
.from_json(json_string) ⇒ Object
a simple helper to convert a json string to a Mash.
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 |