Class: Vcloud::Walker::Resource::Network

Inherits:
Entity
  • Object
show all
Defined in:
lib/vcloud/walker/resource/network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#to_summary

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

#descriptionObject (readonly)

Returns the value of attribute description.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def description
  @description
end

#dns1Object (readonly)

Returns the value of attribute dns1.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def dns1
  @dns1
end

#dns2Object (readonly)

Returns the value of attribute dns2.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def dns2
  @dns2
end

#dns_suffixObject (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

#gatewayObject (readonly)

Returns the value of attribute gateway.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def gateway
  @gateway
end

#idObject (readonly)

Returns the value of attribute id.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def id
  @id
end

#ip_rangesObject (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_inheritedObject (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

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def name
  @name
end

#netmaskObject (readonly)

Returns the value of attribute netmask.



18
19
20
# File 'lib/vcloud/walker/resource/network.rb', line 18

def netmask
  @netmask
end