Class: Kozo::Operation
- Inherits:
-
Object
- Object
- Kozo::Operation
- Defined in:
- lib/kozo/operation.rb
Direct Known Subclasses
Kozo::Operations::Create, Kozo::Operations::Destroy, Kozo::Operations::Show, Kozo::Operations::Update
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
- #apply(_state) ⇒ Object
-
#initialize(resource) ⇒ Operation
constructor
A new instance of Operation.
Constructor Details
#initialize(resource) ⇒ Operation
Returns a new instance of Operation.
9 10 11 |
# File 'lib/kozo/operation.rb', line 9 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
5 6 7 |
# File 'lib/kozo/operation.rb', line 5 def resource @resource end |
Instance Method Details
#apply(_state) ⇒ Object
13 14 15 |
# File 'lib/kozo/operation.rb', line 13 def apply(_state) raise NotImplementedError end |