Class: EasyshipRatesRubyApi::Mash
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- EasyshipRatesRubyApi::Mash
- Defined in:
- lib/easyship/rates/ruby/api/mash.rb
Overview
The generalized pseudo-object that is returned for all query requests.
Class Method Summary collapse
-
.from_json(json_string) ⇒ Easyship::Rates::Ruby::Mash
Convert a json string to a Mash.
Class Method Details
.from_json(json_string) ⇒ Easyship::Rates::Ruby::Mash
Convert a json string to a Mash
12 13 14 15 |
# File 'lib/easyship/rates/ruby/api/mash.rb', line 12 def self.from_json(json_string) result_hash = ::MultiJson.decode(json_string) new(result_hash) end |