Class: Seam::Step

Inherits:
Object
  • Object
show all
Defined in:
lib/seam/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject

Returns the value of attribute arguments.



6
7
8
# File 'lib/seam/step.rb', line 6

def arguments
  @arguments
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/seam/step.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/seam/step.rb', line 4

def name
  @name
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/seam/step.rb', line 5

def type
  @type
end

Instance Method Details

#to_hashObject



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