Sha256: b824f69622fbd3721802a50d83106864f136b944d0b94a2a7fb6c3c75b851b5c

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

require 'fog/core/collection'

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/models/compute/storage_attachments.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/storage_attachments.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/storage_attachments.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/storage_attachments.rb