Module: Wrest::Components::Translators::Txt
Instance Method Summary collapse
- #deserialise(response, options = {}) ⇒ Object
- #deserialize(response, options = {}) ⇒ Object
- #serialise(hash, options = {}) ⇒ Object
- #serialize(hash, options = {}) ⇒ Object
Instance Method Details
#deserialise(response, options = {}) ⇒ Object
14 15 16 |
# File 'lib/wrest/components/translators/txt.rb', line 14 def deserialise(response,={}) response.body end |
#deserialize(response, options = {}) ⇒ Object
18 19 20 |
# File 'lib/wrest/components/translators/txt.rb', line 18 def deserialize(response, = {}) deserialise(response, ) end |
#serialise(hash, options = {}) ⇒ Object
22 23 24 |
# File 'lib/wrest/components/translators/txt.rb', line 22 def serialise(hash, = {}) hash.inspect end |
#serialize(hash, options = {}) ⇒ Object
26 27 28 |
# File 'lib/wrest/components/translators/txt.rb', line 26 def serialize(hash, = {}) serialise(hash, ) end |