Sha256: 7c635bf48b66bba4ac9b92544c2db9c1d71fc02d2cd145d635b5e67d6ace9b7d

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

require 'fog/core/collection'

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

	    	model Fog::Compute::OracleCloud::IpAssociation
				
				def all
					data = service.list_ip_associations().body['result']
					load(data)
				end

 				def get(name)
          data = service.get_ip_association(name).body
          new(data)
        end
	    end
	  end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/ip_associations.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/ip_associations.rb