Class: OrderCop::OrderCopConfig
- Inherits:
-
Object
- Object
- OrderCop::OrderCopConfig
- Defined in:
- lib/order_cop.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#rails_logger ⇒ Object
Returns the value of attribute rails_logger.
-
#raise ⇒ Object
Returns the value of attribute raise.
-
#whitelist_methods ⇒ Object
Returns the value of attribute whitelist_methods.
Instance Method Summary collapse
-
#initialize ⇒ OrderCopConfig
constructor
A new instance of OrderCopConfig.
Constructor Details
#initialize ⇒ OrderCopConfig
Returns a new instance of OrderCopConfig.
15 16 17 18 19 20 21 |
# File 'lib/order_cop.rb', line 15 def initialize @enabled = true @raise = true @debug = false @rails_logger = false @whitelist_methods = i[sum any? none? inspect method_missing not load_target reindex attributes_table with_current_arbre_element] end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
22 23 24 |
# File 'lib/order_cop.rb', line 22 def debug @debug end |
#enabled ⇒ Object
Returns the value of attribute enabled.
22 23 24 |
# File 'lib/order_cop.rb', line 22 def enabled @enabled end |
#rails_logger ⇒ Object
Returns the value of attribute rails_logger.
22 23 24 |
# File 'lib/order_cop.rb', line 22 def rails_logger @rails_logger end |
#raise ⇒ Object
Returns the value of attribute raise.
22 23 24 |
# File 'lib/order_cop.rb', line 22 def raise @raise end |
#whitelist_methods ⇒ Object
Returns the value of attribute whitelist_methods.
22 23 24 |
# File 'lib/order_cop.rb', line 22 def whitelist_methods @whitelist_methods end |