Class: Almodovar::ResourcePresenter::Link::JsonSerializer
- Inherits:
-
Serializer
- Object
- Serializer
- Almodovar::ResourcePresenter::Link::JsonSerializer
- Defined in:
- lib/almodovar-server/resource_presenter/link.rb
Instance Attribute Summary
Attributes inherited from Serializer
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
#as_json ⇒ Object
86 87 88 89 90 91 |
# File 'lib/almodovar-server/resource_presenter/link.rb', line 86 def as_json ActiveSupport::OrderedHash.new.tap do || ["#{link.rel}_link"] = link.href [link.rel] = if end end |