Sha256: 134a89eb89a545a12c8e0cf17d96246ad2e19b7f227e04e844aeee2c20e2e087

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 Bytes

Contents

require 'fog/core/collection'

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

      	model Fog::OracleCloud::SOA::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

2 entries across 2 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/soa/instances.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/soa/instances.rb