Class: ContainerRegistry::Registry
- Inherits:
-
Object
- Object
- ContainerRegistry::Registry
- Defined in:
- lib/container_registry/registry.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, options = {}) ⇒ Registry
constructor
A new instance of Registry.
Constructor Details
#initialize(uri, options = {}) ⇒ Registry
Returns a new instance of Registry.
7 8 9 10 11 |
# File 'lib/container_registry/registry.rb', line 7 def initialize(uri, = {}) @uri = uri @path = [:path] || default_path @client = ContainerRegistry::Client.new(uri, ) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def client @client end |
#path ⇒ Object (readonly)
Returns the value of attribute path
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def path @path end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri
5 6 7 |
# File 'lib/container_registry/registry.rb', line 5 def uri @uri end |