Sha256: b974089d2971058f025debfdb23299db7bc4a4c0b8ebd1f5e82777e2bb28c78e

Contents?: true

Size: 410 Bytes

Versions: 12

Compression:

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

12 entries across 12 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/compute/instances.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/compute/instances.rb