Class: SolidFlow::Wait::Instruction
- Inherits:
-
Object
- Object
- SolidFlow::Wait::Instruction
- Defined in:
- lib/solid_flow/wait.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, options) ⇒ Instruction
constructor
A new instance of Instruction.
- #to_h ⇒ Object
Constructor Details
#initialize(type, options) ⇒ Instruction
Returns a new instance of Instruction.
8 9 10 11 |
# File 'lib/solid_flow/wait.rb', line 8 def initialize(type, ) @type = type @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/solid_flow/wait.rb', line 6 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/solid_flow/wait.rb', line 6 def type @type end |
Instance Method Details
#to_h ⇒ Object
13 14 15 |
# File 'lib/solid_flow/wait.rb', line 13 def to_h { type:, options: } end |