Class: Fog::Compute::Ecloud::Rnat

Inherits:
Ecloud::Model show all
Defined in:
lib/fog/ecloud/models/compute/rnat.rb

Instance Attribute Summary

Attributes inherited from Ecloud::Model

#loaded

Instance Method Summary collapse

Methods inherited from Ecloud::Model

#load_unless_loaded!, #reload

Instance Method Details

#associationsObject



17
18
19
# File 'lib/fog/ecloud/models/compute/rnat.rb', line 17

def associations
  @associations = Fog::Compute::Ecloud::Associations.new(:service => service, :href => href)
end

#idObject



21
22
23
# File 'lib/fog/ecloud/models/compute/rnat.rb', line 21

def id
  href.scan(/\d+/)[0]
end

#networksObject



13
14
15
# File 'lib/fog/ecloud/models/compute/rnat.rb', line 13

def networks
  @networks = Fog::Compute::Ecloud::Networks.new(:service => service, :href => href)
end