This method is deprecated or moved on the latest stable version.
The last existing version (v3.2.13) is shown here.
encode(options={})
public
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.
# File activeresource/lib/active_resource/base.rb, line 1214
def encode(options={})
send("to_#{self.class.format.extension}", options)
end