Class: Fog::Ecloud::MockDataClasses::MockNetworkExtensions
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockNetworkExtensions
show all
- Defined in:
- lib/fog/ecloud/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
453
454
455
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 453
def address
_parent.address
end
|
#broadcast ⇒ Object
449
450
451
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 449
def broadcast
_parent.broadcast
end
|
#friendly_name ⇒ Object
469
470
471
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 469
def friendly_name
"#{name} (#{type}_#{object_id})"
end
|
#gateway ⇒ Object
445
446
447
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 445
def gateway
_parent.gateway
end
|
#name ⇒ Object
441
442
443
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 441
def name
_parent.name
end
|
#rnat ⇒ Object
457
458
459
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 457
def rnat
_parent.rnat
end
|
#type ⇒ Object
461
462
463
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 461
def type
self[:type] || "DMZ"
end
|
#vlan ⇒ Object
465
466
467
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 465
def vlan
object_id.to_s
end
|