Class: Seam::Step
- Inherits:
-
Object
- Object
- Seam::Step
- Defined in:
- lib/seam/step.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Step
constructor
A new instance of Step.
- #to_hash ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Step
Returns a new instance of Step.
8 9 10 |
# File 'lib/seam/step.rb', line 8 def initialize(args = {}) args.each { |k, v| self.send "#{k}=".to_sym, v } end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
6 7 8 |
# File 'lib/seam/step.rb', line 6 def arguments @arguments end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/seam/step.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/seam/step.rb', line 4 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/seam/step.rb', line 5 def type @type end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/seam/step.rb', line 12 def to_hash { id: id, name: name, type: type, arguments: get_arguments } end |