Module: ExposableAttributes::InstanceMethods

Defined in:
lib/exposable_attributes.rb

Instance Method Summary collapse

Instance Method Details

#to_json(options = {}) ⇒ Object



69
70
71
# File 'lib/exposable_attributes.rb', line 69

def to_json(options = {})
  super(exposable_json_attributes.merge(options))
end

#to_xml(options = {}) ⇒ Object



65
66
67
# File 'lib/exposable_attributes.rb', line 65

def to_xml(options = {})
  super(exposable_xml_attributes.merge(options))
end