Class: Misty::Auth::Catalog::V2

Inherits:
Object
  • Object
show all
Includes:
Misty::Auth::Catalog
Defined in:
lib/misty/auth/catalog/v2.rb

Instance Attribute Summary

Attributes included from Misty::Auth::Catalog

#payload

Instance Method Summary collapse

Methods included from Misty::Auth::Catalog

#get_endpoint_url, #initialize

Instance Method Details

#endpoint_url(endpoint, region, interface) ⇒ Object



9
10
11
# File 'lib/misty/auth/catalog/v2.rb', line 9

def endpoint_url(endpoint, region, interface)
  endpoint["#{interface}URL"] if endpoint['region'] == region && endpoint["#{interface}URL"]
end