class Marathon::DeploymentStep
This class represents a Marathon
Deployment step.
Attributes
actions[R]
Public Class Methods
new(hash)
click to toggle source
Create a new deployment step object. hash
: Hash returned by API, including 'actions'
Calls superclass method
Marathon::Base::new
# File lib/marathon/deployment_step.rb, line 8 def initialize(hash) super(hash) if hash.is_a?(Array) @actions = info.map { |e| Marathon::DeploymentAction.new(e) } else @actions = (info[:actions] || []).map { |e| Marathon::DeploymentAction.new(e) } end end
Public Instance Methods
to_s()
click to toggle source
# File lib/marathon/deployment_step.rb, line 17 def to_s "Marathon::DeploymentStep { :actions => #{actions.map { |e| e.to_pretty_s }.join(',')} }" end