Class: Fog::Vcloud::Compute::Vdc

Inherits:
Model show all
Defined in:
lib/fog/compute/models/vcloud/vdc.rb

Instance Attribute Summary

Attributes inherited from Model

#loaded

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#load_unless_loaded!, #reload

Methods inherited from Model

#initialize, #inspect, #reload, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Model

Instance Method Details

#networksObject



21
22
23
24
25
# File 'lib/fog/compute/models/vcloud/vdc.rb', line 21

def networks
  @networks ||= Fog::Vcloud::Compute::Networks.
    new( :connection => connection,
         :href => href )
end

#serversObject



27
28
29
30
31
# File 'lib/fog/compute/models/vcloud/vdc.rb', line 27

def servers
  @servers ||= Fog::Vcloud::Compute::Servers.
    new( :connection => connection,
         :href => href )
end

#tasksObject



33
34
35
36
37
# File 'lib/fog/compute/models/vcloud/vdc.rb', line 33

def tasks
  @tasks ||= Fog::Vcloud::Compute::Tasks.
    new( :connection => connection,
         :href => href + "/tasksList" )
end