Sha256: af0fc959654dda5d972c1e3ff49d8b61863f6d3d781783b5d10421b989346a14

Contents?: true

Size: 437 Bytes

Versions: 16

Compression:

Stored size: 437 Bytes

Contents

require 'fog/core/collection'
require 'fog/serverlove/models/compute/image'

module Fog
  module Compute
    class Serverlove
      class Images < Fog::Collection
        model Fog::Compute::Serverlove::Image

        def all
          data = service.get_images.body
          load(data)
        end

        def get(image_id)
          data = service.get_image(image_id).body
          new(data)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/serverlove/models/compute/images.rb
fog-1.26.0 lib/fog/serverlove/models/compute/images.rb
fog-1.25.0 lib/fog/serverlove/models/compute/images.rb
nsidc-fog-1.24.1 lib/fog/serverlove/models/compute/images.rb
fog-1.24.0 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.11 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.10 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.9 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.8 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.7 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.6 lib/fog/serverlove/models/compute/images.rb
fog-1.23.0 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.4 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.3 lib/fog/serverlove/models/compute/images.rb
ns-fog-1.22.2 lib/fog/serverlove/models/compute/images.rb
fog-1.22.1 lib/fog/serverlove/models/compute/images.rb