Class: Almodovar::ResourcePresenter::Link::XmlSerializer

Inherits:
Serializer
  • Object
show all
Defined in:
lib/almodovar-server/resource_presenter/link.rb

Instance Attribute Summary

Attributes inherited from Serializer

#link, #options

Instance Method Summary collapse

Methods inherited from Serializer

#dont_expand_link!, #expands?, #initialize

Constructor Details

This class inherits a constructor from Almodovar::ResourcePresenter::Link::Serializer

Instance Method Details

#to_xmlObject



63
64
65
# File 'lib/almodovar-server/resource_presenter/link.rb', line 63

def to_xml
  builder.link link.attributes.merge(:rel => link.rel, :href => link.href), &expand_block
end