Class: Docker::Remote::ServerAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/docker/remote/server_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject (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

#paramsObject (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

#realmObject



11
12
13
# File 'lib/docker/remote/server_auth.rb', line 11

def realm
  @params['realm']
end

#serviceObject



15
16
17
# File 'lib/docker/remote/server_auth.rb', line 15

def service
  @params['service']
end