Class: RubyLambda::LambdaContext
- Inherits:
-
Object
- Object
- RubyLambda::LambdaContext
- Defined in:
- lib/ruby_lambda/lambda_context.rb
Instance Attribute Summary collapse
-
#aws_request_id ⇒ Object
readonly
Returns the value of attribute aws_request_id.
-
#clock_diff ⇒ Object
readonly
Returns the value of attribute clock_diff.
-
#deadline_ms ⇒ Object
readonly
Returns the value of attribute deadline_ms.
-
#function_name ⇒ Object
readonly
Returns the value of attribute function_name.
-
#function_version ⇒ Object
readonly
Returns the value of attribute function_version.
-
#invoked_function_arn ⇒ Object
readonly
Returns the value of attribute invoked_function_arn.
-
#log_group_name ⇒ Object
readonly
Returns the value of attribute log_group_name.
-
#log_stream_name ⇒ Object
readonly
Returns the value of attribute log_stream_name.
-
#memory_limit_in_mb ⇒ Object
readonly
Returns the value of attribute memory_limit_in_mb.
Instance Method Summary collapse
-
#initialize ⇒ LambdaContext
constructor
A new instance of LambdaContext.
Constructor Details
#initialize ⇒ LambdaContext
Returns a new instance of LambdaContext.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ruby_lambda/lambda_context.rb', line 6 def initialize @aws_request_id = "c089f0e4-022d-11e9-a659-a36fee2f4cdb" @clock_diff = 1545072475011 @deadline_ms = 1545073117036 @function_name = "ruby-lambda" @function_version = "$LATEST" @invoked_function_arn = "arn:aws:lambda:eu-west-2:537022253312:function:ruby-lambda" @log_group_name = "/aws/lambda/ruby-lambda" @log_stream_name = "2018/12/17/[$LATEST]b367aa21dad14637a7bd7cc483992b4d" @memory_limit_in_mb = "128" end |
Instance Attribute Details
#aws_request_id ⇒ Object (readonly)
Returns the value of attribute aws_request_id.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def aws_request_id @aws_request_id end |
#clock_diff ⇒ Object (readonly)
Returns the value of attribute clock_diff.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def clock_diff @clock_diff end |
#deadline_ms ⇒ Object (readonly)
Returns the value of attribute deadline_ms.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def deadline_ms @deadline_ms end |
#function_name ⇒ Object (readonly)
Returns the value of attribute function_name.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def function_name @function_name end |
#function_version ⇒ Object (readonly)
Returns the value of attribute function_version.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def function_version @function_version end |
#invoked_function_arn ⇒ Object (readonly)
Returns the value of attribute invoked_function_arn.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def invoked_function_arn @invoked_function_arn end |
#log_group_name ⇒ Object (readonly)
Returns the value of attribute log_group_name.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def log_group_name @log_group_name end |
#log_stream_name ⇒ Object (readonly)
Returns the value of attribute log_stream_name.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def log_stream_name @log_stream_name end |
#memory_limit_in_mb ⇒ Object (readonly)
Returns the value of attribute memory_limit_in_mb.
4 5 6 |
# File 'lib/ruby_lambda/lambda_context.rb', line 4 def memory_limit_in_mb @memory_limit_in_mb end |