Class: Vcloud::Walker::Resource::Network
- Defined in:
- lib/vcloud/walker/resource/network.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#dns1 ⇒ Object
readonly
Returns the value of attribute dns1.
-
#dns2 ⇒ Object
readonly
Returns the value of attribute dns2.
-
#dns_suffix ⇒ Object
readonly
Returns the value of attribute dns_suffix.
-
#gateway ⇒ Object
readonly
Returns the value of attribute gateway.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ip_ranges ⇒ Object
readonly
Returns the value of attribute ip_ranges.
-
#is_inherited ⇒ Object
readonly
Returns the value of attribute is_inherited.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#netmask ⇒ Object
readonly
Returns the value of attribute netmask.
Instance Method Summary collapse
-
#initialize(org_network) ⇒ Network
constructor
A new instance of Network.
Methods inherited from Entity
Constructor Details
#initialize(org_network) ⇒ Network
Returns a new instance of Network.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/vcloud/walker/resource/network.rb', line 20 def initialize org_network @id = org_network.id @name = org_network.name @description = org_network.description @is_inherited = org_network.is_inherited @gateway = org_network.gateway @netmask = org_network.netmask @dns1 = org_network.dns1 @dns2 = org_network.dns2 @dns_suffix = org_network.dns_suffix @ip_ranges = org_network.ip_ranges end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def description @description end |
#dns1 ⇒ Object (readonly)
Returns the value of attribute dns1.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def dns1 @dns1 end |
#dns2 ⇒ Object (readonly)
Returns the value of attribute dns2.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def dns2 @dns2 end |
#dns_suffix ⇒ Object (readonly)
Returns the value of attribute dns_suffix.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def dns_suffix @dns_suffix end |
#gateway ⇒ Object (readonly)
Returns the value of attribute gateway.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def gateway @gateway end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def id @id end |
#ip_ranges ⇒ Object (readonly)
Returns the value of attribute ip_ranges.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def ip_ranges @ip_ranges end |
#is_inherited ⇒ Object (readonly)
Returns the value of attribute is_inherited.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def is_inherited @is_inherited end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def name @name end |
#netmask ⇒ Object (readonly)
Returns the value of attribute netmask.
18 19 20 |
# File 'lib/vcloud/walker/resource/network.rb', line 18 def netmask @netmask end |