class Roar::JSON::HAL::Links::ArrayLink::Representer
- Hyperlink, Hyperlink
Public Instance Methods
to_hash(*)
click to toggle source
Calls superclass method
# File lib/roar/json/hal.rb, line 125 def to_hash(*) links = super.flat_map(&:values) # [{"self"=>{"href": ..}}, ..] { represented.rel.to_s => links } # {"self"=>[{"lang"=>"en", "href"=>"http://en.hit"}, {"lang"=>"de", "href"=>"http://de.hit"}]} end