Sha256: 709f1aae2c6ff69497f6bda742ec59b35b5b77928188a4974952202a37eba119

Contents?: true

Size: 394 Bytes

Versions: 5

Compression:

Stored size: 394 Bytes

Contents

require 'fog/core/collection'

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

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

 				def get(name)
          data = service.get_image_list(name).body
          new(data)
        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/compute/image_lists.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/image_lists.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/image_lists.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/image_lists.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/models/compute/image_lists.rb