Class: Flow::Models::Pool

Inherits:
Model
  • Object
show all
Defined in:
lib/flow/models/pool.rb

Instance Attribute Summary

Attributes inherited from Model

#connection, #model_hash

Instance Method Summary collapse

Methods inherited from Model

__load_path, __model_name, build, #initialize, load, load_model, #method_missing, #reload, #reload!

Constructor Details

This class inherits a constructor from Flow::Models::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Flow::Models::Model

Instance Method Details

#production?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/flow/models/pool.rb', line 9

def production?
  self.type == 'production'
end

#test?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/flow/models/pool.rb', line 5

def test?
  self.type == 'test'
end