Class: Fog::Vcloud::Model
Direct Known Subclasses
Terremark::Ecloud::BackupInternetService, Terremark::Ecloud::CatalogItem, Terremark::Ecloud::FirewallAcl, Terremark::Ecloud::InternetService, Terremark::Ecloud::Ip, Terremark::Ecloud::Network, Terremark::Ecloud::Node, Terremark::Ecloud::PublicIp, Terremark::Ecloud::Server, Terremark::Ecloud::Task, Terremark::Ecloud::Vdc, 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, #identity, #identity=, #merge_attributes, #new_record?, #requires
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.
5 6 7 |
# File 'lib/fog/vcloud/model.rb', line 5 def loaded @loaded end |
Instance Method Details
#load_unless_loaded! ⇒ Object
14 15 16 17 18 |
# File 'lib/fog/vcloud/model.rb', line 14 def load_unless_loaded! unless @loaded reload end end |
#reload ⇒ Object
8 9 10 11 12 |
# File 'lib/fog/vcloud/model.rb', line 8 def reload instance = super @loaded = true instance end |