Sha256: 196e4beb62d75846948eb0f9842096e4e9e866586b8f847a533cb09250a56d64

Contents?: true

Size: 424 Bytes

Versions: 11

Compression:

Stored size: 424 Bytes

Contents

require 'fog/core/collection'

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

      	model Fog::OracleCloud::Java::Instance

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

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

      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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