class Docker::ContainerPathStat
Public Class Methods
new(definition)
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 63 def initialize(definition) @data = JSON.parse(Base64.decode64(definition)) end
Public Instance Methods
link_target()
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 67 def link_target @data.fetch('linkTarget') end
method_missing(method_name, *method_args, &blk)
click to toggle source
Calls superclass method
# File lib/drydock/docker_api_patch.rb, line 71 def method_missing(method_name, *method_args, &blk) if mode.respond_to?(method_name) mode.public_send(method_name, *method_args, &blk) else super end end
mode()
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 79 def mode @mode ||= UniversalFileMode.new(@data.fetch('mode')) end
mtime()
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 83 def mtime @mtime ||= DateTime.parse(@data.fetch('mtime')) end
name()
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 87 def name @data.fetch('name') end
respond_to?(method_name)
click to toggle source
Calls superclass method
# File lib/drydock/docker_api_patch.rb, line 91 def respond_to?(method_name) mode.respond_to?(method_name) || super end
size()
click to toggle source
# File lib/drydock/docker_api_patch.rb, line 95 def size @data.fetch('size') end