Class: KeepAlive::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/keep_alive/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_nameObject

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_rowsObject (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