Module: Surety::Configuration

Extended by:
Configuration
Included in:
Configuration
Defined in:
lib/surety/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backoff_factorObject

Returns the value of attribute backoff_factor.



5
6
7
# File 'lib/surety/configuration.rb', line 5

def backoff_factor
  @backoff_factor
end

#database_prefixObject

Returns the value of attribute database_prefix.



5
6
7
# File 'lib/surety/configuration.rb', line 5

def database_prefix
  @database_prefix
end

#max_backoffObject

Returns the value of attribute max_backoff.



5
6
7
# File 'lib/surety/configuration.rb', line 5

def max_backoff
  @max_backoff
end

#message_processing_delegateObject

Returns the value of attribute message_processing_delegate.



5
6
7
# File 'lib/surety/configuration.rb', line 5

def message_processing_delegate
  @message_processing_delegate
end

#retry_intervalObject

Returns the value of attribute retry_interval.



5
6
7
# File 'lib/surety/configuration.rb', line 5

def retry_interval
  @retry_interval
end

Instance Method Details

#databaseObject



7
8
9
# File 'lib/surety/configuration.rb', line 7

def database
  "#{database_prefix}#{ENV['RAILS_ENV'] || Rails.env}"
end