Class: Fog::Identity::OpenStack::V3::Endpoints
- Inherits:
-
Collection
- Object
- Collection
- Fog::Identity::OpenStack::V3::Endpoints
- Defined in:
- lib/fog/openstack/models/identity_v3/endpoints.rb
Instance Method Summary collapse
Instance Method Details
#all(params = {}) ⇒ Object
11 12 13 |
# File 'lib/fog/openstack/models/identity_v3/endpoints.rb', line 11 def all params = {} load(service.list_endpoints(params).body['endpoints']) end |
#find_by_id(id) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/fog/openstack/models/identity_v3/endpoints.rb', line 15 def find_by_id(id) cached_endpoint = self.find { |endpoint| endpoint.id == id } return cached_endpoint if cached_endpoint endpoint_hash = service.get_endpoint(id).body['endpoint'] Fog::Identity::OpenStack::V3::Endpoint.new( endpoint_hash.merge(:service => service)) end |