Class: Clova::Session::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(userId:, accessToken: nil) ⇒ User

Returns a new instance of User.



16
17
18
19
# File 'lib/clova-speech/session.rb', line 16

def initialize(userId:, accessToken:nil)
  @user_id = userId
  @access_token = accessToken
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



14
15
16
# File 'lib/clova-speech/session.rb', line 14

def access_token
  @access_token
end

#user_idObject

Returns the value of attribute user_id.



14
15
16
# File 'lib/clova-speech/session.rb', line 14

def user_id
  @user_id
end