class Marathon::DeploymentAction

This class represents a Marathon Deployment action.

Public Class Methods

new(hash) click to toggle source

Create a new deployment action object. hash: Hash returned by API, including 'app' and 'type'

Calls superclass method Marathon::Base::new
# File lib/marathon/deployment_action.rb, line 6
def initialize(hash)
  super(hash, %w[app])
end

Public Instance Methods

action()
Alias for: type
to_pretty_s() click to toggle source
# File lib/marathon/deployment_action.rb, line 16
def to_pretty_s
  "#{app}/#{type}"
end
to_s() click to toggle source
# File lib/marathon/deployment_action.rb, line 20
def to_s
  "Marathon::DeploymentAction { :app => #{app} :type => #{type} }"
end
type() click to toggle source
# File lib/marathon/deployment_action.rb, line 10
def type
  info[:type] || info[:action]
end
Also aliased as: action