Module: Roar::Representer::XML::ClassMethods

Includes:
Representable::XML::ClassMethods
Defined in:
lib/roar/representer/xml.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(*args) ⇒ Object

Generic entry-point for parsing.



47
48
49
# File 'lib/roar/representer/xml.rb', line 47

def deserialize(*args)
  from_xml(*args)
end


40
41
42
43
44
# File 'lib/roar/representer/xml.rb', line 40

def links_definition_options
  # FIXME: this doesn't belong into the generic XML representer.
  [:links_array, {:as => :link, :class => Feature::Hypermedia::Hyperlink, :collection => true, :extend => XML::HyperlinkRepresenter,
    :decorator_scope => true}] # TODO: merge with JSON.
end