Class: Fog::Ecloud::MockDataClasses::MockNetworkExtensions

Inherits:
Base
  • Object
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!

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#addressObject



453
454
455
# File 'lib/fog/ecloud/mock_data_classes.rb', line 453

def address
  _parent.address
end

#broadcastObject



449
450
451
# File 'lib/fog/ecloud/mock_data_classes.rb', line 449

def broadcast
  _parent.broadcast
end

#friendly_nameObject



469
470
471
# File 'lib/fog/ecloud/mock_data_classes.rb', line 469

def friendly_name
  "#{name} (#{type}_#{object_id})"
end

#gatewayObject



445
446
447
# File 'lib/fog/ecloud/mock_data_classes.rb', line 445

def gateway
  _parent.gateway
end

#nameObject



441
442
443
# File 'lib/fog/ecloud/mock_data_classes.rb', line 441

def name
  _parent.name
end

#rnatObject



457
458
459
# File 'lib/fog/ecloud/mock_data_classes.rb', line 457

def rnat
  _parent.rnat
end

#typeObject



461
462
463
# File 'lib/fog/ecloud/mock_data_classes.rb', line 461

def type
  self[:type] || "DMZ"
end

#vlanObject



465
466
467
# File 'lib/fog/ecloud/mock_data_classes.rb', line 465

def vlan
  object_id.to_s
end