Class: Zaikio::MissionControl::Workstep
- Defined in:
- lib/zaikio/mission_control/workstep.rb
Instance Method Summary collapse
-
#consumed_intermediates ⇒ Object
TODO: change it to return a
Spyke
HasMany
association. -
#created_intermediates ⇒ Object
TODO: change it to return a
Spyke
HasMany
association.
Instance Method Details
#consumed_intermediates ⇒ Object
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_intermediates ⇒ Object
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 |