Class: Fog::DNS::OpenStack::V2::Pools
Instance Attribute Summary
#response
Instance Method Summary
collapse
#destroy, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
11
12
13
|
# File 'lib/fog/dns/openstack/v2/models/pools.rb', line 11
def all(options = {})
load_response(service.list_pools(options), 'pools')
end
|
#find_by_id(id, options = {}) ⇒ Object
Also known as:
get
15
16
17
18
|
# File 'lib/fog/dns/openstack/v2/models/pools.rb', line 15
def find_by_id(id, options = {})
pool_hash = service.get_pool(id, options).body
new(pool_hash.merge(:service => service))
end
|