Class: Sentry::Lambda::NullContext
- Inherits:
-
Object
- Object
- Sentry::Lambda::NullContext
- 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
- #aws_request_id ⇒ Object
- #function_name ⇒ Object
- #function_version ⇒ Object
- #get_remaining_time_in_millis ⇒ Object
- #invoked_function_arn ⇒ Object
Instance Method Details
#aws_request_id ⇒ Object
22 23 24 |
# File 'lib/sentry/lambda/null_context.rb', line 22 def aws_request_id 'n/a' end |
#function_name ⇒ Object
10 11 12 |
# File 'lib/sentry/lambda/null_context.rb', line 10 def function_name 'n/a' end |
#function_version ⇒ Object
14 15 16 |
# File 'lib/sentry/lambda/null_context.rb', line 14 def function_version 'n/a' end |
#get_remaining_time_in_millis ⇒ Object
6 7 8 |
# File 'lib/sentry/lambda/null_context.rb', line 6 def get_remaining_time_in_millis 0 end |
#invoked_function_arn ⇒ Object
18 19 20 |
# File 'lib/sentry/lambda/null_context.rb', line 18 def invoked_function_arn 'n/a' end |