Class: Fog::DNS::OpenStack::V2::ZoneTransferAccepts

Inherits:
OpenStack::Collection show all
Defined in:
lib/fog/dns/openstack/v2/models/zone_transfer_accepts.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #load_response, #summary

Instance Method Details

#all(options = {}) ⇒ Object



11
12
13
# File 'lib/fog/dns/openstack/v2/models/zone_transfer_accepts.rb', line 11

def all(options = {})
  load_response(service.list_zone_transfer_accepts(options), 'transfer_accepts')
end

#find_by_id(id) ⇒ Object Also known as: get



15
16
17
18
# File 'lib/fog/dns/openstack/v2/models/zone_transfer_accepts.rb', line 15

def find_by_id(id)
  zone_transfer_accept_hash = service.get_zone_transfer_accept(id).body
  new(zone_transfer_accept_hash.merge(:service => service))
end