lib/cloudflare/connection.rb in cloudflare-4.1.1 vs lib/cloudflare/connection.rb in cloudflare-4.1.2
- old
+ new
@@ -36,21 +36,21 @@
else
headers['X-Auth-Key'] = key
headers['X-Auth-Email'] = email
end
- self.class.new(@resource.with(headers: headers))
+ self.with(headers: headers)
end
def zones
- Zones.new(@resource.with(path: 'zones'))
+ self.with(Zones, path: 'zones')
end
def accounts
- Accounts.new(@resource.with(path: 'accounts'))
+ self.with(Accounts, path: 'accounts')
end
def user
- User.new(@resource.with(path: 'user'))
+ self.with(User, path: 'user')
end
end
end