Class: FlexiAdmin::Components::Resources::ViewComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Resources::ViewComponent
- Defined in:
- lib/flexi_admin/components/resources/view_component.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(context) ⇒ ViewComponent
constructor
A new instance of ViewComponent.
Constructor Details
#initialize(context) ⇒ ViewComponent
Returns a new instance of ViewComponent.
10 11 12 13 |
# File 'lib/flexi_admin/components/resources/view_component.rb', line 10 def initialize(context) @context = context @title = context.[:title] end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/flexi_admin/components/resources/view_component.rb', line 5 def context @context end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/flexi_admin/components/resources/view_component.rb', line 5 def title @title end |