Class: FogModel

Inherits:
Object
  • Object
show all
Defined in:
lib/dew/models/fog_model.rb

Direct Known Subclasses

Database, Server

Instance Method Summary collapse

Constructor Details

#initialize(fog_object) ⇒ FogModel

Returns a new instance of FogModel.



2
3
4
# File 'lib/dew/models/fog_model.rb', line 2

def initialize fog_object
  @fog_object = fog_object
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_sym, *args, &block) ⇒ Object



14
15
16
# File 'lib/dew/models/fog_model.rb', line 14

def method_missing method_sym, *args, &block
  @fog_object.send(method_sym, *args, &block)
end

Instance Method Details

#idObject



6
7
8
# File 'lib/dew/models/fog_model.rb', line 6

def id
  @fog_object.id
end

#wait_until_readyObject



10
11
12
# File 'lib/dew/models/fog_model.rb', line 10

def wait_until_ready
  @fog_object.wait_for { ready? }
end