Class: Fog::Vcloud::Model
Direct Known Subclasses
Compute::Catalog, Compute::CatalogItem, Compute::Ip, Compute::Network, Compute::Server, Compute::Task, Compute::Vdc
Instance Attribute Summary collapse
-
#loaded ⇒ Object
(also: #loaded?)
Returns the value of attribute loaded.
Attributes inherited from Model
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
#loaded ⇒ Object Also known as: loaded?
Returns the value of attribute loaded.
39 40 41 |
# File 'lib/fog/compute/vcloud.rb', line 39 def loaded @loaded end |
Instance Method Details
#load_unless_loaded! ⇒ Object
48 49 50 51 52 |
# File 'lib/fog/compute/vcloud.rb', line 48 def load_unless_loaded! unless @loaded reload end end |
#reload ⇒ Object
42 43 44 45 46 |
# File 'lib/fog/compute/vcloud.rb', line 42 def reload instance = super @loaded = true instance end |