Class: Nocode::Step
- Inherits:
-
Object
- Object
- Nocode::Step
- Extended by:
- Forwardable
- Includes:
- Util::Arrayable, Util::Optionable
- Defined in:
- lib/nocode/step.rb
Overview
Defines a running step. Steps should be sub-classes of this class as well as to implement #perform.
Direct Known Subclasses
Nocode::Steps::Copy, Nocode::Steps::Dataset::Append, Nocode::Steps::Dataset::Coalesce, Nocode::Steps::Dataset::Insert, Nocode::Steps::Dataset::Prepend, Nocode::Steps::Dataset::Range, Nocode::Steps::Delete, Nocode::Steps::Deserialize::Csv, Nocode::Steps::Deserialize::Json, Nocode::Steps::Deserialize::Yaml, Nocode::Steps::Each, Nocode::Steps::Io::Delete, Nocode::Steps::Io::List, Nocode::Steps::Io::Read, Nocode::Steps::Io::Write, Nocode::Steps::Log, Nocode::Steps::Map, Nocode::Steps::Record::Map, Nocode::Steps::Serialize::Csv, Nocode::Steps::Serialize::Json, Nocode::Steps::Serialize::Yaml, Nocode::Steps::Set, Nocode::Steps::Sleep
Constant Summary
Constants included from Util::Optionable
Util::Optionable::OPTION_PREFIX
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(context: Context.new, name: '', options: {}, type: '') ⇒ Step
constructor
A new instance of Step.
Methods included from Util::Optionable
included, #method_missing, #respond_to_missing?
Methods included from Util::Arrayable
Constructor Details
#initialize(context: Context.new, name: '', options: {}, type: '') ⇒ Step
Returns a new instance of Step.
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/nocode/step.rb', line 21 def initialize( context: Context.new, name: '', options: {}, type: '' ) @context = context @options = @name = name @type = type end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Nocode::Util::Optionable
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
11 12 13 |
# File 'lib/nocode/step.rb', line 11 def context @context end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/nocode/step.rb', line 11 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
11 12 13 |
# File 'lib/nocode/step.rb', line 11 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/nocode/step.rb', line 11 def type @type end |