Class: Docker::Tag

Inherits:
Repository show all
Defined in:
lib/docker/tag.rb

Instance Attribute Summary collapse

Attributes inherited from Repository

#id, #image_id

Attributes inherited from Image

#id

Instance Method Summary collapse

Methods inherited from Repository

#remove!, #remove_image!, #to_s

Methods inherited from Image

build, #image_id, #inspekt, #remove!, #repositories, #to_s

Methods included from Helpers

#rails_image, #rails_server

Methods included from Equality

#==

Constructor Details

#initialize(id, repo_name, name) ⇒ Tag

Returns a new instance of Tag.



5
6
7
8
9
# File 'lib/docker/tag.rb', line 5

def initialize(id, repo_name, name)
  @id         = "#{repo_name}:#{name}"
  @repo_name  = repo_name
  @image_id   = id
end

Instance Attribute Details

#repo_nameObject (readonly)

Returns the value of attribute repo_name.



4
5
6
# File 'lib/docker/tag.rb', line 4

def repo_name
  @repo_name
end