Module: HALDecorator::Collection
- Included in:
- ClassMethods
- Defined in:
- lib/hal_decorator/collection.rb
Defined Under Namespace
Classes: CollectionParameters
Instance Attribute Summary collapse
-
#collection_name ⇒ Object
readonly
Returns the value of attribute collection_name.
Instance Method Summary collapse
Instance Attribute Details
#collection_name ⇒ Object (readonly)
Returns the value of attribute collection_name.
6 7 8 |
# File 'lib/hal_decorator/collection.rb', line 6 def collection_name @collection_name end |
Instance Method Details
#collection(of:, &block) ⇒ Object
21 22 23 |
# File 'lib/hal_decorator/collection.rb', line 21 def collection(of:, &block) @_parameters = CollectionParameters.new(of, &block) end |