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