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