Module: Misty::Auth::Catalog

Included in:
V2, V3
Defined in:
lib/misty.rb,
lib/misty/errors.rb,
lib/misty/auth/catalog.rb,
lib/misty/auth/catalog/v2.rb,
lib/misty/auth/catalog/v3.rb

Defined Under Namespace

Classes: EndpointError, ServiceTypeError, V2, V3

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



4
5
6
# File 'lib/misty/auth/catalog.rb', line 4

def payload
  @payload
end

Instance Method Details

#get_endpoint_url(names, region, interface) ⇒ Object

Raises:



10
11
12
13
14
# File 'lib/misty/auth/catalog.rb', line 10

def get_endpoint_url(names, region, interface)
  entry = get_service(names)
  raise ServiceTypeError, 'Endpoint discovery: No service type match' unless entry
  find_url(entry, region, interface)
end

#initialize(payload) ⇒ Object



6
7
8
# File 'lib/misty/auth/catalog.rb', line 6

def initialize(payload)
  @payload = payload
end