Class: Clova::Session

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

Defined Under Namespace

Classes: User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new:, sessionAttributes:, sessionId:, user:) ⇒ Session

Returns a new instance of Session.



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

def initialize(new:, sessionAttributes:, sessionId:, user:)
  @new = new #boolean
  @session_attributes = sessionAttributes #key-value pair object, stores data from previous ClovaResponse' session_attributes
  @session_id = sessionId #String
  @user = User.new(user)
end

Instance Attribute Details

#newObject

Returns the value of attribute new.



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

def new
  @new
end

#session_attributesObject

Returns the value of attribute session_attributes.



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

def session_attributes
  @session_attributes
end

#session_idObject

Returns the value of attribute session_id.



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

def session_id
  @session_id
end

#userObject

Returns the value of attribute user.



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

def user
  @user
end