Class: DockerRegistry::Tag
- Inherits:
-
Object
- Object
- DockerRegistry::Tag
- Defined in:
- lib/docker_registry/tag.rb
Instance Attribute Summary collapse
-
#image_id ⇒ Object
readonly
Returns the value of attribute image_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#repository ⇒ Object
readonly
Returns the value of attribute repository.
Instance Method Summary collapse
- #delete! ⇒ Object
-
#initialize(name, image_id, repository) ⇒ Tag
constructor
A new instance of Tag.
- #inspect ⇒ Object
- #registry ⇒ Object
Constructor Details
#initialize(name, image_id, repository) ⇒ Tag
Returns a new instance of Tag.
6 7 8 9 10 |
# File 'lib/docker_registry/tag.rb', line 6 def initialize(name, image_id, repository) @name = name @image_id = image_id @repository = repository end |
Instance Attribute Details
#image_id ⇒ Object (readonly)
Returns the value of attribute image_id.
4 5 6 |
# File 'lib/docker_registry/tag.rb', line 4 def image_id @image_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/docker_registry/tag.rb', line 4 def name @name end |
#repository ⇒ Object (readonly)
Returns the value of attribute repository.
4 5 6 |
# File 'lib/docker_registry/tag.rb', line 4 def repository @repository end |
Instance Method Details
#delete! ⇒ Object
16 17 18 |
# File 'lib/docker_registry/tag.rb', line 16 def delete! registry.delete_reporitory_tag(self) end |
#inspect ⇒ Object
20 21 22 |
# File 'lib/docker_registry/tag.rb', line 20 def inspect "#<DockerRegistry::Tag #{@repository.full_name}:#{name} >" end |
#registry ⇒ Object
12 13 14 |
# File 'lib/docker_registry/tag.rb', line 12 def registry @repository.registry end |