Sha256: 5ddcd68a9bcfb5e412630cefc4acb876b39594e1266d782ce9f49a4266947e31

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

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