Class: Docker::Tag
- Inherits:
-
Repository
- Object
- Image
- Repository
- Docker::Tag
- Defined in:
- lib/docker/tag.rb
Instance Attribute Summary collapse
-
#repo_name ⇒ Object
readonly
Returns the value of attribute repo_name.
Attributes inherited from Repository
Attributes inherited from Image
Instance Method Summary collapse
-
#initialize(id, repo_name, name) ⇒ Tag
constructor
A new instance of Tag.
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
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_name ⇒ Object (readonly)
Returns the value of attribute repo_name.
4 5 6 |
# File 'lib/docker/tag.rb', line 4 def repo_name @repo_name end |