Class: Ralyxa::RequestEntities::LambdaRequest
- Extended by:
- Forwardable
- Defined in:
- lib/ralyxa/request_entities/lambda_request.rb
Constant Summary collapse
- INTENT_REQUEST_TYPE =
'IntentRequest'.freeze
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(event, user_class = Ralyxa::RequestEntities::User) ⇒ LambdaRequest
constructor
A new instance of LambdaRequest.
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
#request ⇒ Object (readonly)
Returns the value of attribute request.
16 17 18 |
# File 'lib/ralyxa/request_entities/lambda_request.rb', line 16 def request @request end |