Class: Jav::ResourceSidebarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Jav::ResourceSidebarComponent
- Defined in:
- app/components/jav/resource_sidebar_component.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#form ⇒ Object
readonly
Returns the value of attribute form.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
-
#initialize(resource: nil, fields: nil, index: nil, params: nil, form: nil, view: nil) ⇒ ResourceSidebarComponent
constructor
A new instance of ResourceSidebarComponent.
- #render? ⇒ Boolean
Constructor Details
#initialize(resource: nil, fields: nil, index: nil, params: nil, form: nil, view: nil) ⇒ ResourceSidebarComponent
Returns a new instance of ResourceSidebarComponent.
6 7 8 9 10 11 12 13 |
# File 'app/components/jav/resource_sidebar_component.rb', line 6 def initialize(resource: nil, fields: nil, index: nil, params: nil, form: nil, view: nil) super @resource = resource @fields = fields @params = params @view = view @form = form end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
4 5 6 |
# File 'app/components/jav/resource_sidebar_component.rb', line 4 def fields @fields end |
#form ⇒ Object (readonly)
Returns the value of attribute form.
4 5 6 |
# File 'app/components/jav/resource_sidebar_component.rb', line 4 def form @form end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'app/components/jav/resource_sidebar_component.rb', line 4 def params @params end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
4 5 6 |
# File 'app/components/jav/resource_sidebar_component.rb', line 4 def resource @resource end |
#view ⇒ Object (readonly)
Returns the value of attribute view.
4 5 6 |
# File 'app/components/jav/resource_sidebar_component.rb', line 4 def view @view end |
Instance Method Details
#render? ⇒ Boolean
15 16 17 |
# File 'app/components/jav/resource_sidebar_component.rb', line 15 def render? true end |