get_request :get_public_ip vcloud_type "application/vnd.tmrk.ecloud.publicIp+xml" all_request lambda { |public_ips| public_ips.connection.get_public_ips(public_ips.href) }
# File lib/fog/ecloud/models/compute/public_ips.rb, line 18 def all check_href!(:message => "the Public Ips href of the Vdc you want to enumerate") if data = connection.get_public_ips(href).body[:PublicIPAddress] load(data) end end
# File lib/fog/ecloud/models/compute/public_ips.rb, line 25 def get(uri) if data = connection.get_public_ip(uri) new(data.body) end rescue Fog::Errors::NotFound nil end