Class: Jahuty::Action::Base
- Inherits:
-
Object
- Object
- Jahuty::Action::Base
- Defined in:
- lib/jahuty/action/base.rb
Overview
Provides common logic for service actions.
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource:, params: {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(resource:, params: {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 |
# File 'lib/jahuty/action/base.rb', line 9 def initialize(resource:, params: {}) @resource = resource @params = params end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/jahuty/action/base.rb', line 7 def params @params end |
#resource ⇒ Object
Returns the value of attribute resource.
7 8 9 |
# File 'lib/jahuty/action/base.rb', line 7 def resource @resource end |