Class: HALDecorator::Collection::CollectionParameters
- Inherits:
-
Object
- Object
- HALDecorator::Collection::CollectionParameters
- Includes:
- Attributes, HALDecorator::Curies, Links
- Defined in:
- lib/hal_decorator/collection.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ CollectionParameters
constructor
A new instance of CollectionParameters.
Methods included from HALDecorator::Curies
Methods included from Links
Methods included from Attributes
Constructor Details
#initialize(name, &block) ⇒ CollectionParameters
Returns a new instance of CollectionParameters.
13 14 15 16 |
# File 'lib/hal_decorator/collection.rb', line 13 def initialize(name, &block) @name = name instance_exec(&block) if block_given? end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/hal_decorator/collection.rb', line 11 def name @name end |