Sha256: 441014933649e666c411a1e7b86a97013869e5ddf29cfcca8f89fdc737f906f0

Contents?: true

Size: 516 Bytes

Versions: 3

Compression:

Stored size: 516 Bytes

Contents

require 'fog/core/collection'

module Fog
  module OracleCloud
    class Database
      class Instances < Fog::Collection

      	model Fog::OracleCloud::Database::Instance

      	def all
          data = service.list_instances().body['services']
          load(data)
        end

        def get(id)
          new(service.get_instance(id).body)
        end

        def get_from_job(job_id)
          new(service.get_instance_from_job(job_id).body)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/database/instances.rb