Class: Fog::HP::Network::Network
- Inherits:
-
Model
- Object
- Model
- Fog::HP::Network::Network
- Defined in:
- lib/fog/hp/models/network/network.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
16 17 18 19 20 |
# File 'lib/fog/hp/models/network/network.rb', line 16 def destroy requires :id service.delete_network(id) true end |
#ready? ⇒ Boolean
22 23 24 |
# File 'lib/fog/hp/models/network/network.rb', line 22 def ready? self.status == 'ACTIVE' end |
#save ⇒ Object
35 36 37 |
# File 'lib/fog/hp/models/network/network.rb', line 35 def save identity ? update : create end |