Class: Fog::Compute::Packet::Vpns
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::Vpns
- Defined in:
- lib/fog/compute/packet/models/vpns.rb
Overview
Projects Collection
Instance Method Summary collapse
Instance Method Details
#disable ⇒ Object
20 21 22 23 |
# File 'lib/fog/compute/packet/models/vpns.rb', line 20 def disable response = service.disable_vpn true if response.status == 204 end |
#enable ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/vpns.rb', line 15 def enable response = service.enable_vpn true if response.status == 201 end |
#get(facility_code) ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/vpns.rb', line 10 def get(facility_code) response = service.get_vpn(facility_code) new(response.body) end |