Class: AlexaRubykit::LaunchRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/alexa_rubykit/launch_request.rb

Instance Attribute Summary

Attributes inherited from Request

#json, #locale, #request_id, #session, #type, #version

Instance Method Summary collapse

Constructor Details

#initialize(json_request) ⇒ LaunchRequest

We still don't know if all of the parameters in the request are required. Checking for the presence of intent on an IntentRequest.


5
6
7
8
# File 'lib/alexa_rubykit/launch_request.rb', line 5

def initialize(json_request)
  super
  @type = 'LAUNCH_REQUEST'
end

Instance Method Details

#to_sObject

Outputs the launch requestID.


11
12
13
# File 'lib/alexa_rubykit/launch_request.rb', line 11

def to_s
  "LaunchRequest requestID: #{request_id}"
end