Class: Fog::Compute::Ninefold::IpForwardingRules
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Ninefold::IpForwardingRules
- Defined in:
- lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 |
# File 'lib/fog/ninefold/models/compute/ip_forwarding_rules.rb', line 10 def all data = service.list_ip_forwarding_rules load(data) end |
#get(identifier) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/fog/ninefold/models/compute/ip_forwarding_rules.rb', line 15 def get(identifier) return nil if identifier.nil? || identifier == "" data = service.list_ip_forwarding_rules(:id => identifier) if data.empty? nil else new(data[0]) end end |