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
Methods inherited from Hash
#symbolize_keys!
Instance Method Details
#address ⇒ Object
455
456
457
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 455
def address
_parent.address
end
|
#broadcast ⇒ Object
451
452
453
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 451
def broadcast
_parent.broadcast
end
|
#friendly_name ⇒ Object
471
472
473
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 471
def friendly_name
"#{name} (#{type}_#{object_id})"
end
|
#gateway ⇒ Object
447
448
449
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 447
def gateway
_parent.gateway
end
|
#name ⇒ Object
443
444
445
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 443
def name
_parent.name
end
|
#rnat ⇒ Object
459
460
461
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 459
def rnat
_parent.rnat
end
|
#type ⇒ Object
463
464
465
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 463
def type
self[:type] || "DMZ"
end
|
#vlan ⇒ Object
467
468
469
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 467
def vlan
object_id.to_s
end
|