Class: Fog::DNS::StormOnDemand::Zones
- Inherits:
-
Collection
- Object
- Collection
- Fog::DNS::StormOnDemand::Zones
- Defined in:
- lib/fog/storm_on_demand/models/dns/zones.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
20 21 22 23 |
# File 'lib/fog/storm_on_demand/models/dns/zones.rb', line 20 def all(={}) zones = service.list_zones().body['items'] load(zones) end |
#create(options) ⇒ Object
10 11 12 13 |
# File 'lib/fog/storm_on_demand/models/dns/zones.rb', line 10 def create() zone = service.create_zone().body new(zone) end |
#get(zone_id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/storm_on_demand/models/dns/zones.rb', line 15 def get(zone_id) zone = service.get_zone(:id => zone_id).body new(zone) end |