Class: Accountability::Configuration
- Inherits:
-
Object
- Object
- Accountability::Configuration
- Defined in:
- lib/accountability/configuration.rb
Class Attribute Summary collapse
- .admin_checker ⇒ Object
- .billable_identifier ⇒ Object
- .billable_name_column ⇒ Object
-
.country_whitelist ⇒ Object
Returns the value of attribute country_whitelist.
-
.dev_tools_enabled ⇒ Object
Returns the value of attribute dev_tools_enabled.
-
.logo_path ⇒ Object
Returns the value of attribute logo_path.
-
.payment_gateway ⇒ Object
Returns the value of attribute payment_gateway.
- .tax_rate ⇒ Object
Class Method Summary collapse
Class Attribute Details
.admin_checker ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/accountability/configuration.rb', line 11 def admin_checker if @admin_checker.is_a? Proc @admin_checker else -> { true } end end |
.billable_identifier ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/accountability/configuration.rb', line 19 def billable_identifier if @billable_identifier.is_a? Proc @billable_identifier else -> { @current_user } end end |
.billable_name_column ⇒ Object
27 28 29 |
# File 'lib/accountability/configuration.rb', line 27 def billable_name_column @billable_name_column || :id end |
.country_whitelist ⇒ Object
Returns the value of attribute country_whitelist.
4 5 6 |
# File 'lib/accountability/configuration.rb', line 4 def country_whitelist @country_whitelist end |
.dev_tools_enabled ⇒ Object
Returns the value of attribute dev_tools_enabled.
4 5 6 |
# File 'lib/accountability/configuration.rb', line 4 def dev_tools_enabled @dev_tools_enabled end |
.logo_path ⇒ Object
Returns the value of attribute logo_path.
4 5 6 |
# File 'lib/accountability/configuration.rb', line 4 def logo_path @logo_path end |
.payment_gateway ⇒ Object
Returns the value of attribute payment_gateway.
4 5 6 |
# File 'lib/accountability/configuration.rb', line 4 def payment_gateway @payment_gateway end |
.tax_rate ⇒ Object
7 8 9 |
# File 'lib/accountability/configuration.rb', line 7 def tax_rate @tax_rate || 0.0 end |
Class Method Details
.dev_tools_enabled? ⇒ Boolean
31 32 33 |
# File 'lib/accountability/configuration.rb', line 31 def dev_tools_enabled? !!dev_tools_enabled end |