Class: Clova::Session
- Inherits:
-
Object
- Object
- Clova::Session
- Defined in:
- lib/clova-speech/session.rb
Defined Under Namespace
Classes: User
Instance Attribute Summary collapse
-
#new ⇒ Object
Returns the value of attribute new.
-
#session_attributes ⇒ Object
Returns the value of attribute session_attributes.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(new:, sessionAttributes:, sessionId:, user:) ⇒ Session
constructor
A new instance of Session.
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
#new ⇒ Object
Returns the value of attribute new.
3 4 5 |
# File 'lib/clova-speech/session.rb', line 3 def new @new end |
#session_attributes ⇒ Object
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_id ⇒ Object
Returns the value of attribute session_id.
3 4 5 |
# File 'lib/clova-speech/session.rb', line 3 def session_id @session_id end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/clova-speech/session.rb', line 3 def user @user end |