Class: Zaikio::MissionControl::Workstep

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/mission_control/workstep.rb

Instance Method Summary collapse

Instance Method Details

#consumed_intermediatesObject

TODO: change it to return a Spyke HasMany association



27
28
29
30
31
# File 'lib/zaikio/mission_control/workstep.rb', line 27

def consumed_intermediates
  @consumed_intermediates ||= get(:workstep)["intermediates"]["consumed"].map do |slot|
    Zaikio::MissionControl::IntermediateProduct.new(slot)
  end
end

#created_intermediatesObject

TODO: change it to return a Spyke HasMany association



20
21
22
23
24
# File 'lib/zaikio/mission_control/workstep.rb', line 20

def created_intermediates
  @created_intermediates ||= self["intermediates"]["created"].map do |slot|
    Zaikio::MissionControl::IntermediateProduct.new(slot)
  end
end