class AlexaRubykit::SessionEndedRequest
Attributes
reason[RW]
Public Class Methods
new(json_request)
click to toggle source
TODO: Validate the reason. We still don't know if all of the parameters in the request are required. Checking for the presence of intent on an IntentRequest
.
Calls superclass method
AlexaRubykit::Request::new
# File lib/alexa_rubykit/session_ended_request.rb, line 9 def initialize(json_request) super @type = 'SESSION_ENDED_REQUEST' @reason = json_request['request']['reason'] end
Public Instance Methods
to_s()
click to toggle source
Ouputs the request_id and the reason why.
# File lib/alexa_rubykit/session_ended_request.rb, line 16 def to_s "Session Ended for requestID: #{request_id} with reason #{reason}" end