Class: Fog::Ecloud::Model

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/ecloud/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loadedObject Also known as: loaded?

Returns the value of attribute loaded.



4
5
6
# File 'lib/fog/ecloud/model.rb', line 4

def loaded
  @loaded
end

Instance Method Details

#load_unless_loaded!Object



13
14
15
16
17
# File 'lib/fog/ecloud/model.rb', line 13

def load_unless_loaded!
  unless @loaded
    reload
  end
end

#reloadObject



7
8
9
10
11
# File 'lib/fog/ecloud/model.rb', line 7

def reload
  instance = super
  @loaded = true
  instance
end