# File lib/reactive_resource/base.rb, line 242 def encode(options = {}) if defined?(ActiveResource::VERSION) && ActiveResource::VERSION::MAJOR == 3 if respond_to?("to_#{self.class.format.extension}") super(options) else self.class.format.encode(attributes, options) end else super(options) end end