class Seam::Step

Attributes

arguments[RW]
id[RW]
name[RW]
type[RW]

Public Class Methods

new(args = {}) click to toggle source
# File lib/seam/step.rb, line 8
def initialize(args = {})
  args.each { |k, v| self.send "#{k}=".to_sym, v }
end

Public Instance Methods

to_hash() click to toggle source
# File lib/seam/step.rb, line 12
def to_hash
  {
    id:        id,
    name:      name,
    type:      type,
    arguments: get_arguments
  }
end

Private Instance Methods

get_arguments() click to toggle source
# File lib/seam/step.rb, line 23
def get_arguments
  arguments.map do |x|
    if x.is_a? Hash
      HashWithIndifferentAccess.new(x)
    else
      x
    end
  end
end