Class: Naf::Configuration
- Inherits:
-
Object
- Object
- Naf::Configuration
- Defined in:
- lib/naf/configuration.rb
Instance Attribute Summary collapse
-
#api_controller_class ⇒ Object
Returns the value of attribute api_controller_class.
-
#api_domain_cookie_name ⇒ Object
Returns the value of attribute api_domain_cookie_name.
-
#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.
-
#simple_cluster_authenticator_cookie_expiration_time ⇒ Object
Returns the value of attribute simple_cluster_authenticator_cookie_expiration_time.
-
#title ⇒ Object
Returns the value of attribute title.
-
#ui_controller_class ⇒ Object
Returns the value of attribute ui_controller_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/naf/configuration.rb', line 13 def initialize @model_class = "::ActiveRecord::Base" @ui_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] @api_controller_class = "Naf::ApiSimpleClusterAuthenticatorApplicationController" @simple_cluster_authenticator_cookie_expiration_time = 1.week @api_domain_cookie_name = "naf_#{Rails.application.class.parent.name.underscore}" end |
Instance Attribute Details
#api_controller_class ⇒ Object
Returns the value of attribute api_controller_class.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def api_controller_class @api_controller_class end |
#api_domain_cookie_name ⇒ Object
Returns the value of attribute api_domain_cookie_name.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def @api_domain_cookie_name 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 |
#simple_cluster_authenticator_cookie_expiration_time ⇒ Object
Returns the value of attribute simple_cluster_authenticator_cookie_expiration_time.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def @simple_cluster_authenticator_cookie_expiration_time end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def title @title end |
#ui_controller_class ⇒ Object
Returns the value of attribute ui_controller_class.
3 4 5 |
# File 'lib/naf/configuration.rb', line 3 def ui_controller_class @ui_controller_class end |