Class: Docker::Remote::ServerAuth
- Inherits:
-
Object
- Object
- Docker::Remote::ServerAuth
- Defined in:
- lib/docker/remote/server_auth.rb
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
readonly
Returns the value of attribute auth_type.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(auth_type, params) ⇒ ServerAuth
constructor
A new instance of ServerAuth.
- #realm ⇒ Object
- #service ⇒ Object
Constructor Details
#initialize(auth_type, params) ⇒ ServerAuth
Returns a new instance of ServerAuth.
6 7 8 9 |
# File 'lib/docker/remote/server_auth.rb', line 6 def initialize(auth_type, params) @auth_type = auth_type @params = params end |
Instance Attribute Details
#auth_type ⇒ Object (readonly)
Returns the value of attribute auth_type.
4 5 6 |
# File 'lib/docker/remote/server_auth.rb', line 4 def auth_type @auth_type end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
4 5 6 |
# File 'lib/docker/remote/server_auth.rb', line 4 def params @params end |
Instance Method Details
#realm ⇒ Object
11 12 13 |
# File 'lib/docker/remote/server_auth.rb', line 11 def realm @params['realm'] end |
#service ⇒ Object
15 16 17 |
# File 'lib/docker/remote/server_auth.rb', line 15 def service @params['service'] end |