Class: Vcloud::Walker::Resource::GatewayIpsecVpnService
- Defined in:
- lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb
Instance Attribute Summary collapse
-
#IsEnabled ⇒ Object
readonly
Returns the value of attribute IsEnabled.
-
#Tunnels ⇒ Object
readonly
Returns the value of attribute Tunnels.
Instance Method Summary collapse
-
#initialize(fog_vpn_service) ⇒ GatewayIpsecVpnService
constructor
A new instance of GatewayIpsecVpnService.
Methods inherited from Entity
Constructor Details
#initialize(fog_vpn_service) ⇒ GatewayIpsecVpnService
Returns a new instance of GatewayIpsecVpnService.
7 8 9 10 11 12 13 |
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 7 def initialize fog_vpn_service @IsEnabled = fog_vpn_service[:IsEnabled] if fog_vpn_service[:Tunnel] fog_vpn_tunnels = [fog_vpn_service[:Tunnel]].flatten @Tunnels = populate_tunnel_info(fog_vpn_tunnels) end end |
Instance Attribute Details
#IsEnabled ⇒ Object (readonly)
Returns the value of attribute IsEnabled.
5 6 7 |
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 5 def IsEnabled @IsEnabled end |
#Tunnels ⇒ Object (readonly)
Returns the value of attribute Tunnels.
5 6 7 |
# File 'lib/vcloud/walker/resource/gateway_ipsec_vpn_service.rb', line 5 def Tunnels @Tunnels end |