Class: AdequateSerialization::Steps::Step
- Inherits:
-
Object
- Object
- AdequateSerialization::Steps::Step
- Defined in:
- lib/adequate_serialization/steps/step.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next_step ⇒ Object
readonly
Returns the value of attribute next_step.
Instance Method Summary collapse
- #apply(response) ⇒ Object
-
#initialize(next_step = :last) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(next_step = :last) ⇒ Step
Returns a new instance of Step.
8 9 10 |
# File 'lib/adequate_serialization/steps/step.rb', line 8 def initialize(next_step = :last) @next_step = next_step end |
Instance Attribute Details
#next_step ⇒ Object (readonly)
Returns the value of attribute next_step.
6 7 8 |
# File 'lib/adequate_serialization/steps/step.rb', line 6 def next_step @next_step end |
Instance Method Details
#apply(response) ⇒ Object
12 13 14 |
# File 'lib/adequate_serialization/steps/step.rb', line 12 def apply(response) apply_next(response) end |