Class: WOWSQL::AuthSession

Inherits:
Struct
  • Object
show all
Defined in:
lib/wowsql/auth.rb

Overview

Session tokens returned by the auth service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token: '', refresh_token: '', token_type: 'bearer', expires_in: 0) ⇒ AuthSession

Returns a new instance of AuthSession.



24
25
26
# File 'lib/wowsql/auth.rb', line 24

def initialize(access_token: '', refresh_token: '', token_type: 'bearer', expires_in: 0)
  super
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



20
21
22
# File 'lib/wowsql/auth.rb', line 20

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in

Returns:

  • (Object)

    the current value of expires_in



20
21
22
# File 'lib/wowsql/auth.rb', line 20

def expires_in
  @expires_in
end

#refresh_tokenObject

Returns the value of attribute refresh_token

Returns:

  • (Object)

    the current value of refresh_token



20
21
22
# File 'lib/wowsql/auth.rb', line 20

def refresh_token
  @refresh_token
end

#token_typeObject

Returns the value of attribute token_type

Returns:

  • (Object)

    the current value of token_type



20
21
22
# File 'lib/wowsql/auth.rb', line 20

def token_type
  @token_type
end