Class: Fog::OpenStack::Auth::Catalog::V3

Inherits:
Object
  • Object
show all
Includes:
Fog::OpenStack::Auth::Catalog
Defined in:
lib/fog/openstack/auth/catalog/v3.rb

Instance Attribute Summary

Attributes included from Fog::OpenStack::Auth::Catalog

#payload

Instance Method Summary collapse

Methods included from Fog::OpenStack::Auth::Catalog

#get_endpoint_url, #initialize

Instance Method Details

#endpoint_match?(endpoint, interface, region) ⇒ Boolean

Returns:

  • (Boolean)


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

def endpoint_match?(endpoint, interface, region)
  if endpoint['interface'] == interface
    true unless !region.nil? && endpoint['region'] != region
  end
end

#endpoint_url(endpoint, _) ⇒ Object



16
17
18
# File 'lib/fog/openstack/auth/catalog/v3.rb', line 16

def endpoint_url(endpoint, _)
  endpoint['url']
end