Module: Misty::Auth::Catalog
- 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
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
Instance Attribute Details
#payload ⇒ Object (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
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 |