class Marathon::ContainerVolume
This class represents a Marathon
Container Volume information. See mesosphere.github.io/marathon/docs/native-docker.html for full details.
Constants
- ACCESSORS
- DEFAULTS
Public Class Methods
new(hash)
click to toggle source
Create a new container volume object. hash
: Hash returned by API.
Calls superclass method
Marathon::Base::new
# File lib/marathon/container_volume.rb, line 12 def initialize(hash) super(Marathon::Util.merge_keywordized_hash(DEFAULTS, hash), ACCESSORS) Marathon::Util.validate_choice('mode', mode, %w[RW RO]) raise Marathon::Error::ArgumentError, 'containerPath must not be nil' unless containerPath end
Public Instance Methods
to_pretty_s()
click to toggle source
# File lib/marathon/container_volume.rb, line 18 def to_pretty_s "#{containerPath}:#{hostPath}:#{mode}" end
to_s()
click to toggle source
# File lib/marathon/container_volume.rb, line 22 def to_s "Marathon::ContainerVolume { :containerPath => #{containerPath} :hostPath => #{hostPath} :mode => #{mode} }" end