Class: Fog::Compute::Ecloud::FirewallAcls
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::FirewallAcls
- Defined in:
- lib/fog/ecloud/models/compute/firewall_acls.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
11 12 13 14 15 |
# File 'lib/fog/ecloud/models/compute/firewall_acls.rb', line 11 def all data = service.get_firewall_acls(href).body data = data[:FirewallAcl] ? data[:FirewallAcl] : data load(data) end |
#get(uri) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/fog/ecloud/models/compute/firewall_acls.rb', line 17 def get(uri) if data = service.get_firewall_acl(uri) new(data.body) end rescue Fog::Errors::NotFound nil end |