lib/fog/dynect/models/dns/records.rb in fog-1.8.0 vs lib/fog/dynect/models/dns/records.rb in fog-1.9.0
- old
+ new
@@ -12,11 +12,11 @@
model Fog::DNS::Dynect::Record
def all(options = {})
requires :zone
data = []
- connection.get_node_list(zone.domain, options).body['data'].each do |fqdn|
- records = connection.get_record('ANY', zone.domain, fqdn).body['data']
+ service.get_node_list(zone.domain, options).body['data'].each do |fqdn|
+ records = service.get_record('ANY', zone.domain, fqdn).body['data']
# data in format ['/REST/xRecord/domain/fqdn/identity]
records.map! do |record|
tokens = record.split('/')
{