Class: Royal::Config
- Inherits:
-
Object
- Object
- Royal::Config
- Defined in:
- lib/royal/config.rb
Constant Summary collapse
- DEFAULT_LOCKING =
:optimistic
- DEFAULT_MAX_RETRIES =
10
Instance Attribute Summary collapse
-
#locking ⇒ #call
The configured locking mechanism for the points balance ledger.
- #max_retries ⇒ Integer
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 18 |
# File 'lib/royal/config.rb', line 15 def initialize self.locking = DEFAULT_LOCKING self.max_retries = DEFAULT_MAX_RETRIES end |
Instance Attribute Details
#locking ⇒ #call
The configured locking mechanism for the points balance ledger.
11 12 13 |
# File 'lib/royal/config.rb', line 11 def locking @locking end |
#max_retries ⇒ Integer
13 14 15 |
# File 'lib/royal/config.rb', line 13 def max_retries @max_retries end |