Class: ReportableRails::Configuration
- Inherits:
-
Object
- Object
- ReportableRails::Configuration
- Defined in:
- lib/reportable_rails.rb
Instance Attribute Summary collapse
-
#default_category_name ⇒ Object
Returns the value of attribute default_category_name.
-
#report_submitted_callback ⇒ Object
Returns the value of attribute report_submitted_callback.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
40 41 42 43 44 |
# File 'lib/reportable_rails.rb', line 40 def initialize @user_class = 'User' @default_category_name = 'Uncategorized' @report_submitted_callback = nil end |
Instance Attribute Details
#default_category_name ⇒ Object
Returns the value of attribute default_category_name.
38 39 40 |
# File 'lib/reportable_rails.rb', line 38 def default_category_name @default_category_name end |
#report_submitted_callback ⇒ Object
Returns the value of attribute report_submitted_callback.
38 39 40 |
# File 'lib/reportable_rails.rb', line 38 def report_submitted_callback @report_submitted_callback end |
#user_class ⇒ Object
Returns the value of attribute user_class.
38 39 40 |
# File 'lib/reportable_rails.rb', line 38 def user_class @user_class end |