Class: Dato::BaseComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Dato::BaseComponent
- Defined in:
- app/components/dato/base_component.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ BaseComponent
constructor
A new instance of BaseComponent.
Constructor Details
#initialize(data) ⇒ BaseComponent
Returns a new instance of BaseComponent.
5 6 7 |
# File 'app/components/dato/base_component.rb', line 5 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'app/components/dato/base_component.rb', line 3 def data @data end |