lib/fog/ibm/models/compute/addresses.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/ibm/models/compute/addresses.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -8,15 +8,15 @@
class Addresses < Fog::Collection
model Fog::Compute::IBM::Address
def all
- load(connection.list_addresses.body['addresses'])
+ load(service.list_addresses.body['addresses'])
end
def get(address_id)
begin
- address = connection.list_addresses.body
+ address = service.list_addresses.body
new(address['addresses'].find{|address| address['id'] == address_id.to_s })
rescue Fog::Compute::IBM::NotFound
nil
end
end