Sha256: bd29537d757fc2338c4ce3639fc7a4f77af477e35ec3486d1b14f0dca154704f

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

require 'fog/core/collection'

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

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

 				def get(name)
          data = service.get_ip_reservation(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/ip_reservations.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/models/compute/ip_reservations.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/models/compute/ip_reservations.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/models/compute/ip_reservations.rb