Class: Roar::JSON::HAL::Links::SingleLink::Representer

Inherits:
Representable::Decorator
  • Object
show all
Includes:
Representable::JSON::Hash
Defined in:
lib/roar/json/hal.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject


103
104
105
106
# File 'lib/roar/json/hal.rb', line 103

def to_hash(*)
  hash = super
  {hash.delete("rel").to_s => hash}
end