Class: Circler::Step

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, hash) ⇒ Step

Returns a new instance of Step.



6
7
8
9
10
# File 'lib/circler/response/step.rb', line 6

def initialize(type, hash)
  @type = type
  @status = hash['status']
  @hash = hash
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#actionsObject



12
13
14
# File 'lib/circler/response/step.rb', line 12

def actions
  @hash['actions'].map{ |a| Action.new(a) }
end