Sha256: decbaa164b8f428e8e0ffea0c6661519f0faf3b9666bc2a66562e6f54894f57b
Contents?: true
Size: 782 Bytes
Versions: 3
Compression:
Stored size: 782 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/address' module Fog module Compute class Cloudstack class PublicIpAddresses < Fog::Collection model Fog::Compute::Cloudstack::PublicIpAddress def all(options = {}) response = service.list_public_ip_addresses(options) public_ip_addresses = response["listpublicipaddressesresponse"]["publicipaddress"] || [] load(public_ip_addresses) end def get(address_id) options = { 'id' => address_id } response = service.list_public_ip_addresses(options) public_ip_addresses = response["listpublicipaddressesresponse"]["publicipaddress"].first new(public_ip_addresses) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems