class ChiliLogger::Values::Default
class for keeping all default values in a single place
Public Instance Methods
action()
click to toggle source
# File lib/helpers/values/default.rb, line 41 def action undefined_string end
desc()
click to toggle source
# File lib/helpers/values/default.rb, line 45 def desc { type: type, service: service, action: action } end
env()
click to toggle source
# File lib/helpers/values/default.rb, line 25 def env undefined_string end
fallback_broker()
click to toggle source
# File lib/helpers/values/default.rb, line 11 def fallback_broker :aws_sqs end
invalid_string()
click to toggle source
# File lib/helpers/values/default.rb, line 83 def invalid_string 'invalid_format' end
layer()
click to toggle source
# File lib/helpers/values/default.rb, line 29 def layer undefined_string end
log()
click to toggle source
# File lib/helpers/values/default.rb, line 71 def log {} end
log_error()
click to toggle source
# File lib/helpers/values/default.rb, line 61 def log_error sentence1 = 'ChiliLogger received an unsupported type of error, so it replaced it with this generic string.' sentence2 = ' Errors must be either a String or a descendant of the Exception class.' sentence1 + sentence2 end
log_errors()
click to toggle source
# File lib/helpers/values/default.rb, line 57 def log_errors [] end
main_content()
click to toggle source
# File lib/helpers/values/default.rb, line 49 def main_content { modified_records: modified_records, errors: log_errors } end
modified_records()
click to toggle source
# File lib/helpers/values/default.rb, line 53 def modified_records {} end
msg_broker()
click to toggle source
# File lib/helpers/values/default.rb, line 7 def msg_broker :rabbitmq end
server_url()
click to toggle source
# File lib/helpers/values/default.rb, line 67 def server_url undefined_string end
service()
click to toggle source
# File lib/helpers/values/default.rb, line 37 def service undefined_string end
sqs_message()
click to toggle source
# File lib/helpers/values/default.rb, line 75 def sqs_message { error_type: undefined_string, error_message: undefined_string, log: undefined_string } end
type()
click to toggle source
# File lib/helpers/values/default.rb, line 33 def type undefined_string end
undefined_string()
click to toggle source
# File lib/helpers/values/default.rb, line 87 def undefined_string 'not_specified' end
user()
click to toggle source
# File lib/helpers/values/default.rb, line 15 def user { cognito_id: undefined_string, email: undefined_string, company_cognito_id: undefined_string, company_name: undefined_string, ghost_user_cognito_id: undefined_string } end