Class: Dato::BaseComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/dato/base_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'app/components/dato/base_component.rb', line 3

def data
  @data
end