class DockerCloud::Type
Attributes
client[R]
info[R]
Public Class Methods
new(response, client)
click to toggle source
# File lib/docker_cloud/type.rb, line 5 def initialize(response, client) @info = response @client = client @uuid = info[:uuid] @resource_uri = info[:uuid] end
Public Instance Methods
reload()
click to toggle source
# File lib/docker_cloud/type.rb, line 12 def reload refreshed = api.get_from_uri(resource_uri) @info = refreshed.info end
resource_uri()
click to toggle source
# File lib/docker_cloud/type.rb, line 21 def resource_uri info[:resource_uri] end
uuid()
click to toggle source
# File lib/docker_cloud/type.rb, line 17 def uuid info[:uuid] end