Class: Grumlin::StepData

Inherits:
Object
  • Object
show all
Defined in:
lib/grumlin/step_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



4
5
6
# File 'lib/grumlin/step_data.rb', line 4

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/grumlin/step_data.rb', line 4

def name
  @name
end

#paramsObject (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