Class: Riaction::Constants

Inherits:
Object
  • Object
show all
Defined in:
lib/riaction/constants.rb

Class Method Summary collapse

Class Method Details

.crud_actionsObject

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_errorObject

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_profileObject

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_optionsObject



25
26
27
28
29
# File 'lib/riaction/constants.rb', line 25

def self.riaction_options
  {
    :default_event_params => {}
  }
end

.supported_identifier_typesObject

sets the valid supported identifiers

Returns:

  • returns an array of symbols



21
22
23
# File 'lib/riaction/constants.rb', line 21

def self.supported_identifier_types
  [:email,:username,:custom,:facebook,:twitter,:salesforce]
end