Class: Fog::Compute::Ecloud::FirewallAcls
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::FirewallAcls
- Defined in:
- lib/fog/compute/ecloud/models/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/compute/ecloud/models/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 24 |
# File 'lib/fog/compute/ecloud/models/firewall_acls.rb', line 17 def get(uri) if data = service.get_firewall_acl(uri) new(data.body) end rescue ServiceError => e raise e unless e.status_code == 404 nil end |