Module: Wrest::Components::Translators::Txt

Extended by:
Txt
Included in:
Txt
Defined in:
lib/wrest/components/translators/txt.rb

Instance Method Summary collapse

Instance Method Details

#deserialise(response, options = {}) ⇒ Object



14
15
16
# File 'lib/wrest/components/translators/txt.rb', line 14

def deserialise(response,options={})
  response.body
end

#deserialize(response, options = {}) ⇒ Object



18
19
20
# File 'lib/wrest/components/translators/txt.rb', line 18

def deserialize(response, options = {})
  deserialise(response, options)
end

#serialise(hash, options = {}) ⇒ Object



22
23
24
# File 'lib/wrest/components/translators/txt.rb', line 22

def serialise(hash, options = {})
  hash.inspect
end

#serialize(hash, options = {}) ⇒ Object



26
27
28
# File 'lib/wrest/components/translators/txt.rb', line 26

def serialize(hash, options = {})
  serialise(hash, options)
end