Sha256: 51712731c4e5477b3b6ae2d36dc89b71452edad0f4aad86f0856c60c94bfda86

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
fog-storm_on_demand-0.1.0 lib/fog/dns/storm_on_demand/models/zones.rb
fog-storm_on_demand-0.0.1 lib/fog/dns/storm_on_demand/models/zones.rb