Class: KeepAlive::Config
- Inherits:
-
Object
- Object
- KeepAlive::Config
- Defined in:
- lib/keep_alive/config.rb
Instance Attribute Summary collapse
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#no_of_rows ⇒ Object
readonly
Returns the value of attribute no_of_rows.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #model(*model) ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 |
# File 'lib/keep_alive/config.rb', line 5 def initialize @no_of_rows = 0 @model_name = "" end |
Instance Attribute Details
#model_name ⇒ Object
Returns the value of attribute model_name.
4 5 6 |
# File 'lib/keep_alive/config.rb', line 4 def model_name @model_name end |
#no_of_rows ⇒ Object (readonly)
Returns the value of attribute no_of_rows.
3 4 5 |
# File 'lib/keep_alive/config.rb', line 3 def no_of_rows @no_of_rows end |
Instance Method Details
#model(*model) ⇒ Object
10 11 12 |
# File 'lib/keep_alive/config.rb', line 10 def model(*model) @model_name = model end |