Class: Royal::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/royal/config.rb

Constant Summary collapse

DEFAULT_LOCKING =
:optimistic
DEFAULT_MAX_RETRIES =
10

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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.

Returns:

  • (#call)


11
12
13
# File 'lib/royal/config.rb', line 11

def locking
  @locking
end

#max_retriesInteger

Returns:

  • (Integer)


13
14
15
# File 'lib/royal/config.rb', line 13

def max_retries
  @max_retries
end