Sha256: f79478c944735ab74669e69a3f091b880a510c20a426d885860b13de14050e80

Contents?: true

Size: 385 Bytes

Versions: 7

Compression:

Stored size: 385 Bytes

Contents

module Fog
  module Network
    class StormOnDemand
      class Zones < Fog::Collection
        model Fog::Network::StormOnDemand::Zone

        def get(zone_id)
          z = service.get_zone(:id => zone_id).body
          new(z)
        end

        def all(options = {})
          data = service.list_zones(options).body
          load(data)
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-storm_on_demand-0.1.1/lib/fog/network/storm_on_demand/models/zones.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-storm_on_demand-0.1.1/lib/fog/network/storm_on_demand/models/zones.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-storm_on_demand-0.1.1/lib/fog/network/storm_on_demand/models/zones.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-storm_on_demand-0.1.1/lib/fog/network/storm_on_demand/models/zones.rb
fog-storm_on_demand-0.1.1 lib/fog/network/storm_on_demand/models/zones.rb
fog-storm_on_demand-0.1.0 lib/fog/network/storm_on_demand/models/zones.rb
fog-storm_on_demand-0.0.1 lib/fog/network/storm_on_demand/models/zones.rb