Class: Roar::Representer::JSON::HAL::Links::LinkArray
- Inherits:
-
Array
- Object
- Array
- Roar::Representer::JSON::HAL::Links::LinkArray
- Defined in:
- lib/roar/representer/json/hal.rb
Instance Attribute Summary collapse
-
#rel ⇒ Object
Returns the value of attribute rel.
Instance Method Summary collapse
-
#initialize(elems, rel) ⇒ LinkArray
constructor
A new instance of LinkArray.
Constructor Details
#initialize(elems, rel) ⇒ LinkArray
Returns a new instance of LinkArray.
156 157 158 159 |
# File 'lib/roar/representer/json/hal.rb', line 156 def initialize(elems, rel) super(elems) @rel = rel end |
Instance Attribute Details
#rel ⇒ Object
Returns the value of attribute rel.
161 162 163 |
# File 'lib/roar/representer/json/hal.rb', line 161 def rel @rel end |