Sha256: 3818bf01207393a679211be790d07b3a98d152a637acec74be5e20fa12935b1d
Contents?: true
Size: 581 Bytes
Versions: 15
Compression:
Stored size: 581 Bytes
Contents
require 'fog/core/collection' require 'fog/storm_on_demand/models/dns/zone' module Fog module DNS class StormOnDemand class Zones < Fog::Collection model Fog::DNS::StormOnDemand::Zone def create(options) zone = service.create_zone(options).body new(zone) end def get(zone_id) zone = service.get_zone(:id => zone_id).body new(zone) end def all(options={}) zones = service.list_zones(options).body['items'] load(zones) end end end end end
Version data entries
15 entries across 15 versions & 4 rubygems