Class: Grumlin::StepData
- Inherits:
-
Object
- Object
- Grumlin::StepData
- Defined in:
- lib/grumlin/step_data.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, args: [], params: {}) ⇒ StepData
constructor
A new instance of StepData.
Constructor Details
#initialize(name, args: [], params: {}) ⇒ StepData
Returns a new instance of StepData.
6 7 8 9 10 |
# File 'lib/grumlin/step_data.rb', line 6 def initialize(name, args: [], params: {}) @name = name @args = args @params = params end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/grumlin/step_data.rb', line 4 def args @args end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/grumlin/step_data.rb', line 4 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/grumlin/step_data.rb', line 4 def params @params end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/grumlin/step_data.rb', line 12 def ==(other) self.class == other.class && @name == other.name && @args == other.args && @params == other.params end |