Class: HALPresenter::Embedded::Embed

Inherits:
Property
  • Object
show all
Defined in:
lib/hal_presenter/embedded.rb

Constant Summary

Constants inherited from Property

Property::NO_VALUE

Instance Attribute Summary collapse

Attributes inherited from Property

#embed_depth, #name

Instance Method Summary collapse

Methods inherited from Property

#change_context, #nested_depth_ok?, #value

Constructor Details

#initialize(name, value = NO_VALUE, **kwargs, &block) ⇒ Embed

Returns a new instance of Embed.



11
12
13
14
# File 'lib/hal_presenter/embedded.rb', line 11

def initialize(name, value = NO_VALUE, **kwargs, &block)
  @presenter_class = kwargs.delete(:presenter_class)
  super(name, value, **kwargs, &block)
end

Instance Attribute Details

#presenter_classObject (readonly)

Returns the value of attribute presenter_class.



9
10
11
# File 'lib/hal_presenter/embedded.rb', line 9

def presenter_class
  @presenter_class
end