Class: AlexaRuby::SessionEndedRequest

Inherits:
BaseRequest show all
Defined in:
lib/alexa_ruby/request/session_ended_request.rb

Overview

Amazon “SessionEndedRequest” request type

Instance Attribute Summary

Attributes inherited from BaseRequest

#certificates_chain_url, #context, #id, #locale, #session, #signature, #timestamp, #type, #version

Instance Method Summary collapse

Methods inherited from BaseRequest

#json, #valid?

Constructor Details

#initialize(request) ⇒ SessionEndedRequest

Initialize new SessionEndedRequest

Parameters:

  • request (Hash)

    valid request from Amazon Alexa service


8
9
10
11
12
# File 'lib/alexa_ruby/request/session_ended_request.rb', line 8

def initialize(request)
  @type = :session_ended
  super
  finalize_session
end