Class: Ralyxa::RequestEntities::LambdaRequest

Inherits:
Request
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/ralyxa/request_entities/lambda_request.rb

Constant Summary collapse

INTENT_REQUEST_TYPE =
'IntentRequest'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#intent_name, #new_session?, #session_attribute, #session_attributes, #slot_id, #slot_value

Constructor Details

#initialize(event, user_class = Ralyxa::RequestEntities::User) ⇒ LambdaRequest

Returns a new instance of LambdaRequest.



18
19
20
21
# File 'lib/ralyxa/request_entities/lambda_request.rb', line 18

def initialize(event, user_class = Ralyxa::RequestEntities::User)
  @request = event
  @user = user_class.build(@request)
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



16
17
18
# File 'lib/ralyxa/request_entities/lambda_request.rb', line 16

def request
  @request
end