Sha256: 68504821d17e1265333903050416751be3384c2be6ff4352efb63cd943433f8d

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

require 'fog/core/collection'

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

	    	model Fog::Compute::OracleCloud::Instance
				
 				def get(name)
          data = service.get_instance(name).body
          new(data)
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/models/compute/instances.rb