Class: Fog::Vcloud::Model

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/vcloud/compute.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#collection, #connection

Instance Method Summary collapse

Methods inherited from Model

#initialize, #inspect, #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 Attribute Details

#loadedObject Also known as: loaded?

Returns the value of attribute loaded.



40
41
42
# File 'lib/fog/vcloud/compute.rb', line 40

def loaded
  @loaded
end

Instance Method Details

#load_unless_loaded!Object



49
50
51
52
53
# File 'lib/fog/vcloud/compute.rb', line 49

def load_unless_loaded!
  unless @loaded
    reload
  end
end

#reloadObject



43
44
45
46
47
# File 'lib/fog/vcloud/compute.rb', line 43

def reload
  instance = super
  @loaded = true
  instance
end