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

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace-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



455
456
457
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 455

def address
  _parent.address
end

#broadcastObject



451
452
453
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 451

def broadcast
  _parent.broadcast
end

#friendly_nameObject



471
472
473
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 471

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

#gatewayObject



447
448
449
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 447

def gateway
  _parent.gateway
end

#nameObject



443
444
445
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 443

def name
  _parent.name
end

#rnatObject



459
460
461
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 459

def rnat
  _parent.rnat
end

#typeObject



463
464
465
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 463

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

#vlanObject



467
468
469
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 467

def vlan
  object_id.to_s
end