Sha256: 51d63470559622c9261730124538d1be0abe4d8613f702c670f9c4be3a6de1b8

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

module DigitalOcean
  module Resource
    class Image < Base
      def list(opts = {})
        @connection.get('/images', opts).body
      end

      def show(id)
        @connection.get("/images/#{id}").body
      end

      def delete(id)
        @connection.get("/images/#{id}/destroy").body
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
digital_ocean-1.5.0 lib/digital_ocean/resource/image.rb
digital_ocean-1.4.0 lib/digital_ocean/resource/image.rb
digital_ocean-1.3.0 lib/digital_ocean/resource/image.rb
digital_ocean-1.2.0 lib/digital_ocean/resource/image.rb
digital_ocean-1.0.1 lib/digital_ocean/resource/image.rb
digital_ocean-1.0.0 lib/digital_ocean/resource/image.rb
digital_ocean-0.2.0 lib/digital_ocean/resource/image.rb
digital_ocean-0.1.0 lib/digital_ocean/resource/image.rb
digital_ocean-0.0.1 lib/digital_ocean/resource/image.rb
digital_ocean-0.0.1alpha1 lib/digital_ocean/resource/image.rb