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

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/compute/ecloud.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::Ecloud::MockDataClasses::Base

Instance Method Details

#addressObject



486
487
488
# File 'lib/fog/compute/ecloud.rb', line 486

def address
  _parent.address
end

#broadcastObject



482
483
484
# File 'lib/fog/compute/ecloud.rb', line 482

def broadcast
  _parent.broadcast
end

#friendly_nameObject



502
503
504
# File 'lib/fog/compute/ecloud.rb', line 502

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

#gatewayObject



478
479
480
# File 'lib/fog/compute/ecloud.rb', line 478

def gateway
  _parent.gateway
end

#nameObject



474
475
476
# File 'lib/fog/compute/ecloud.rb', line 474

def name
  _parent.name
end

#rnatObject



490
491
492
# File 'lib/fog/compute/ecloud.rb', line 490

def rnat
  _parent.rnat
end

#typeObject



494
495
496
# File 'lib/fog/compute/ecloud.rb', line 494

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

#vlanObject



498
499
500
# File 'lib/fog/compute/ecloud.rb', line 498

def vlan
  object_id.to_s
end