class Fog::Compute::Cloudstack::PortForwardingRules

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/cloudstack/models/compute/port_forwarding_rules.rb, line 10
def all(options = {})
  response = service.list_port_forwarding_rules(options)
  port_forwarding_rules = response["listportforwardingrulesresponse"]["portforwardingrule"] || []
  load(port_forwarding_rules)
end
get(address_id) click to toggle source
# File lib/fog/cloudstack/models/compute/port_forwarding_rules.rb, line 16
def get(address_id)
  options = { 'id' => address_id }
  response = service.list_port_forwarding_rules(options)
  port_forwarding_rules = response["listportforwardingrulesresponse"]["portforwardingrule"].first
  new(port_forwarding_rules)
end