Class: Fog::Vcloud::MockDataClasses::MockNetworkExtensions
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Vcloud::MockDataClasses::MockNetworkExtensions
show all
- Defined in:
- lib/fog/vcloud/mock_data_classes.rb
Instance Method Summary
collapse
Methods inherited from Base
#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last
Instance Method Details
#address ⇒ Object
454
455
456
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 454
def address
_parent.address
end
|
#broadcast ⇒ Object
450
451
452
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 450
def broadcast
_parent.broadcast
end
|
#friendly_name ⇒ Object
470
471
472
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 470
def friendly_name
"#{name} (#{type}_#{object_id})"
end
|
#gateway ⇒ Object
446
447
448
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 446
def gateway
_parent.gateway
end
|
#name ⇒ Object
442
443
444
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 442
def name
_parent.name
end
|
#rnat ⇒ Object
458
459
460
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 458
def rnat
_parent.rnat
end
|
#type ⇒ Object
462
463
464
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 462
def type
self[:type] || "DMZ"
end
|
#vlan ⇒ Object
466
467
468
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 466
def vlan
object_id.to_s
end
|