Module Wrest::Components::Translators::Json

  1. lib/wrest/components/translators/json.rb

Methods

public instance

  1. deserialise
  2. serialise

Public instance methods

deserialise (response,options = {})
[show source]
    # File lib/wrest/components/translators/json.rb, line 16
16:       def deserialise(response,options = {})
17:         ActiveSupport::JSON.decode(response.body)
18:       end
serialise (hash, options = {})
[show source]
    # File lib/wrest/components/translators/json.rb, line 20
20:       def serialise(hash, options = {})
21:         hash.to_json(options)
22:       end