Sha256: 211ef4a15e79717c02246f1ac93c1d4af1576c5cab485ad24fa8bfba7caeed36

Contents?: true

Size: 410 Bytes

Versions: 8

Compression:

Stored size: 410 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

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/database/instances.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/database/instances.rb