Class: HALDecorator::Collection::CollectionParameters

Inherits:
Object
  • Object
show all
Includes:
Attributes, HALDecorator::Curies, Links
Defined in:
lib/hal_decorator/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HALDecorator::Curies

#curie

Methods included from Links

#link

Methods included from Attributes

#attribute

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

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/hal_decorator/collection.rb', line 11

def name
  @name
end