Class: Clova::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/clova-speech/request/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session:, context:, request:, version:) ⇒ Request

Returns a new instance of Request.



5
6
7
8
9
# File 'lib/clova-speech/request/request.rb', line 5

def initialize(session:, context:, request:, version:)
  @context = context
  @session = Session.new(session)
  @version = version
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/clova-speech/request/request.rb', line 3

def context
  @context
end

#sessionObject (readonly)

Returns the value of attribute session.



3
4
5
# File 'lib/clova-speech/request/request.rb', line 3

def session
  @session
end

#versionObject (readonly)

Returns the value of attribute version.



3
4
5
# File 'lib/clova-speech/request/request.rb', line 3

def version
  @version
end

Instance Method Details

#session_attributesObject



11
12
13
# File 'lib/clova-speech/request/request.rb', line 11

def session_attributes
  @session.session_attributes
end