Class: LesliView::Items::Actions
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- LesliView::Items::Actions
- Defined in:
- lib/lesli_view/items/actions.rb
Instance Attribute Summary collapse
-
#path_to_create ⇒ Object
readonly
Returns the value of attribute path_to_create.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource, path_to_create: nil, path_to_update: nil) ⇒ Actions
constructor
A new instance of Actions.
Constructor Details
#initialize(resource, path_to_create: nil, path_to_update: nil) ⇒ Actions
Returns a new instance of Actions.
38 39 40 41 42 |
# File 'lib/lesli_view/items/actions.rb', line 38 def initialize(resource, path_to_create:nil, path_to_update:nil) @resource = resource @path_to_create = path_to_create @path_to_update = path_to_update end |
Instance Attribute Details
#path_to_create ⇒ Object (readonly)
Returns the value of attribute path_to_create.
36 37 38 |
# File 'lib/lesli_view/items/actions.rb', line 36 def path_to_create @path_to_create end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
36 37 38 |
# File 'lib/lesli_view/items/actions.rb', line 36 def resource @resource end |