Class: VCloudSdk::Network
- Inherits:
-
Object
- Object
- VCloudSdk::Network
- Extended by:
- Forwardable
- Includes:
- Infrastructure
- Defined in:
- lib/ruby_vcloud_sdk/network.rb
Constant Summary
Constants included from Infrastructure
Infrastructure::ERROR_STATUSES, Infrastructure::SUCCESS_STATUS
Instance Method Summary collapse
- #allocated_ips ⇒ Object
- #href ⇒ Object
-
#initialize(session, link) ⇒ Network
constructor
A new instance of Network.
- #ip_ranges ⇒ Object
Constructor Details
#initialize(session, link) ⇒ Network
Returns a new instance of Network.
11 12 13 14 |
# File 'lib/ruby_vcloud_sdk/network.rb', line 11 def initialize(session, link) @session = session @link = link end |
Instance Method Details
#allocated_ips ⇒ Object
30 31 32 33 34 35 |
# File 'lib/ruby_vcloud_sdk/network.rb', line 30 def allocated_ips allocated_addresses = connection.get(entity_xml.allocated_addresses_link) allocated_addresses.ip_addresses.map do |i| i.ip_address end end |
#href ⇒ Object
16 17 18 |
# File 'lib/ruby_vcloud_sdk/network.rb', line 16 def href @link end |