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

- (Object) loaded 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

- (Object) load_unless_loaded!



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

def load_unless_loaded!
  unless @loaded
    reload
  end
end

- (Object) reload



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

def reload
  instance = super
  @loaded = true
  instance
end