Module: Wrest::Components::Translators::Json
Instance Method Summary collapse
Instance Method Details
#deserialise(response) ⇒ Object
16 17 18 |
# File 'lib/wrest/components/translators/json.rb', line 16 def deserialise(response) ActiveSupport::JSON.decode(response.body) end |
#serialise(hash) ⇒ Object
20 21 22 |
# File 'lib/wrest/components/translators/json.rb', line 20 def serialise(hash) ActiveSupport::JSON.encode(hash) end |