Class: Fog::Vcloud::MockDataClasses::MockNetworkExtensions

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

Constructor Details

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

Instance Method Details

#addressObject



454
455
456
# File 'lib/fog/vcloud/mock_data_classes.rb', line 454

def address
  _parent.address
end

#broadcastObject



450
451
452
# File 'lib/fog/vcloud/mock_data_classes.rb', line 450

def broadcast
  _parent.broadcast
end

#friendly_nameObject



470
471
472
# File 'lib/fog/vcloud/mock_data_classes.rb', line 470

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

#gatewayObject



446
447
448
# File 'lib/fog/vcloud/mock_data_classes.rb', line 446

def gateway
  _parent.gateway
end

#nameObject



442
443
444
# File 'lib/fog/vcloud/mock_data_classes.rb', line 442

def name
  _parent.name
end

#rnatObject



458
459
460
# File 'lib/fog/vcloud/mock_data_classes.rb', line 458

def rnat
  _parent.rnat
end

#typeObject



462
463
464
# File 'lib/fog/vcloud/mock_data_classes.rb', line 462

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

#vlanObject



466
467
468
# File 'lib/fog/vcloud/mock_data_classes.rb', line 466

def vlan
  object_id.to_s
end