1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/storm_on_demand/models/dns/domains.rb
2013-05-23 16:28:28 +08:00

20 lines
371 B
Ruby

require 'fog/core/collection'
require 'fog/storm_on_demand/models/dns/domain'
module Fog
module DNS
class StormOnDemand
class Domains < Fog::Collection
model Fog::DNS::StormOnDemand::Domain
def all(options={})
domains = service.list_domains(options).body['items']
load(domains)
end
end
end
end
end