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

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



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

def address
  _parent.address
end

#broadcastObject



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

def broadcast
  _parent.broadcast
end

#friendly_nameObject



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

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

#gatewayObject



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

def gateway
  _parent.gateway
end

#nameObject



470
471
472
# File 'lib/fog/ecloud/compute.rb', line 470

def name
  _parent.name
end

#rnatObject



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

def rnat
  _parent.rnat
end

#typeObject



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

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

#vlanObject



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

def vlan
  object_id.to_s
end