Class: Naf::Configuration
- Inherits:
-
Object
- Object
- Naf::Configuration
- Defined in:
- lib/naf/configuration.rb
Instance Attribute Summary collapse
-
#controller_class ⇒ Object
Returns the value of attribute controller_class.
-
#default_page_options ⇒ Object
Returns the value of attribute default_page_options.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#model_class ⇒ Object
Returns the value of attribute model_class.
-
#schema_name ⇒ Object
Returns the value of attribute schema_name.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 |
# File 'lib/naf/configuration.rb', line 10 def initialize @model_class = "::ActiveRecord::Base" @controller_class = "::ApplicationController" @title = "Naf - a Rails Job Scheduling Engine" @layout = "naf_layout" @default_page_options = [10, 20, 50, 100, 250, 500, 750, 1000, 1500, 2000] end |
Instance Attribute Details
#controller_class ⇒ Object
Returns the value of attribute controller_class.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def controller_class @controller_class end |
#default_page_options ⇒ Object
Returns the value of attribute default_page_options.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def @default_page_options end |
#layout ⇒ Object
Returns the value of attribute layout.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def layout @layout end |
#model_class ⇒ Object
Returns the value of attribute model_class.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def model_class @model_class end |
#schema_name ⇒ Object
Returns the value of attribute schema_name.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def schema_name @schema_name end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def title @title end |