Class: Vcloud::EdgeGateway::EdgeGatewayConfiguration
- Inherits:
-
Object
- Object
- Vcloud::EdgeGateway::EdgeGatewayConfiguration
- Defined in:
- lib/vcloud/edge_gateway/edge_gateway_configuration.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#diff ⇒ Object
readonly
Returns the value of attribute diff.
Instance Method Summary collapse
-
#initialize(local_config, remote_config, edge_gateway_interfaces) ⇒ EdgeGatewayConfiguration
constructor
A new instance of EdgeGatewayConfiguration.
- #update_required? ⇒ Boolean
Constructor Details
#initialize(local_config, remote_config, edge_gateway_interfaces) ⇒ EdgeGatewayConfiguration
Returns a new instance of EdgeGatewayConfiguration.
7 8 9 |
# File 'lib/vcloud/edge_gateway/edge_gateway_configuration.rb', line 7 def initialize(local_config, remote_config, edge_gateway_interfaces) @config, @diff = generate_new_config(local_config, remote_config, edge_gateway_interfaces) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/vcloud/edge_gateway/edge_gateway_configuration.rb', line 5 def config @config end |
#diff ⇒ Object (readonly)
Returns the value of attribute diff.
5 6 7 |
# File 'lib/vcloud/edge_gateway/edge_gateway_configuration.rb', line 5 def diff @diff end |
Instance Method Details
#update_required? ⇒ Boolean
11 12 13 |
# File 'lib/vcloud/edge_gateway/edge_gateway_configuration.rb', line 11 def update_required? @config.any? end |