Class: Riaction::Constants
- Inherits:
-
Object
- Object
- Riaction::Constants
- Defined in:
- lib/riaction/constants.rb
Class Method Summary collapse
-
.crud_actions ⇒ Object
sets the default actions to be considered as part of riaction.
-
.retry_attempts_for_internal_error ⇒ Object
sets the default number of attempts to retry a action incase of an internal error.
-
.retry_attempts_for_missing_profile ⇒ Object
sets the default number of attempts to retry to log an event when the profile is missing this is for when the logging of an event accidentally happens before, or too soon afterwards, the creation of a profile.
- .riaction_options ⇒ Object
-
.supported_identifier_types ⇒ Object
sets the valid supported identifiers.
Class Method Details
.crud_actions ⇒ Object
sets the default actions to be considered as part of riaction
4 5 6 |
# File 'lib/riaction/constants.rb', line 4 def self.crud_actions Set.new [:create, :update, :destroy] end |
.retry_attempts_for_internal_error ⇒ Object
sets the default number of attempts to retry a action incase of an internal error
9 10 11 |
# File 'lib/riaction/constants.rb', line 9 def self.retry_attempts_for_internal_error 3 end |
.retry_attempts_for_missing_profile ⇒ Object
sets the default number of attempts to retry to log an event when the profile is missing this is for when the logging of an event accidentally happens before, or too soon afterwards, the creation of a profile
15 16 17 |
# File 'lib/riaction/constants.rb', line 15 def self.retry_attempts_for_missing_profile 4 end |
.riaction_options ⇒ Object
25 26 27 28 29 |
# File 'lib/riaction/constants.rb', line 25 def self. { :default_event_params => {} } end |
.supported_identifier_types ⇒ Object
sets the valid supported identifiers
21 22 23 |
# File 'lib/riaction/constants.rb', line 21 def self.supported_identifier_types [:email,:username,:custom,:facebook,:twitter,:salesforce] end |