Class: Sentry::Lambda::NullContext

Inherits:
Object
  • Object
show all
Defined in:
lib/sentry/lambda/null_context.rb

Overview

This class exists to allow nil to quack like an AWS context object, primarily for the purpose of supporting automated tests which don’t supply a context object.

Instance Method Summary collapse

Instance Method Details

#aws_request_idObject



22
23
24
# File 'lib/sentry/lambda/null_context.rb', line 22

def aws_request_id
  'n/a'
end

#function_nameObject



10
11
12
# File 'lib/sentry/lambda/null_context.rb', line 10

def function_name
  'n/a'
end

#function_versionObject



14
15
16
# File 'lib/sentry/lambda/null_context.rb', line 14

def function_version
  'n/a'
end

#get_remaining_time_in_millisObject



6
7
8
# File 'lib/sentry/lambda/null_context.rb', line 6

def get_remaining_time_in_millis
  0
end

#invoked_function_arnObject



18
19
20
# File 'lib/sentry/lambda/null_context.rb', line 18

def invoked_function_arn
  'n/a'
end