Method: ActiveResource::Base#encode
- Defined in:
- lib/activeresource/lib/active_resource/base.rb
#encode(options = {}) ⇒ Object
Returns the serialized string representation of the resource in the configured serialization format specified in ActiveResource::Base.format. The options applicable depend on the configured encoding format.
1450 1451 1452 |
# File 'lib/activeresource/lib/active_resource/base.rb', line 1450 def encode( = {}) send("to_#{self.class.format.extension}", ) end |