Module: Wrest::Components::Translators::Txt
- Defined in:
- lib/wrest/components/translators/txt.rb
Class Method Summary collapse
- .deserialise(response, _options = {}) ⇒ Object
- .deserialize(response, options = {}) ⇒ Object
- .serialise(hash, _options = {}) ⇒ Object
- .serialize(hash, options = {}) ⇒ Object
Class Method Details
.deserialise(response, _options = {}) ⇒ Object
17 18 19 |
# File 'lib/wrest/components/translators/txt.rb', line 17 def deserialise(response, = {}) response.body end |
.deserialize(response, options = {}) ⇒ Object
21 22 23 |
# File 'lib/wrest/components/translators/txt.rb', line 21 def deserialize(response, = {}) deserialise(response, ) end |
.serialise(hash, _options = {}) ⇒ Object
25 26 27 |
# File 'lib/wrest/components/translators/txt.rb', line 25 def serialise(hash, = {}) hash.inspect end |
.serialize(hash, options = {}) ⇒ Object
29 30 31 |
# File 'lib/wrest/components/translators/txt.rb', line 29 def serialize(hash, = {}) serialise(hash, ) end |