Class: BRL::Auth::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/brl/auth/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token: nil, created_at: Time.now.zone, expires_in: nil, refresh_token: nil, scope: nil, token_type: nil) ⇒ Token

Returns a new instance of Token.



8
9
10
11
12
13
14
15
# File 'lib/brl/auth/token.rb', line 8

def initialize(access_token: nil, created_at: Time.now.zone, expires_in: nil, refresh_token: nil, scope: nil, token_type: nil)
  @access_token  = access_token
  @created_at    = created_at
  @expires_in    = expires_in
  @refresh_token = refresh_token
  @scope         = scope
  @token_type    = token_type
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def access_token
  @access_token
end

#created_atObject (readonly)

Returns the value of attribute created_at.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def created_at
  @created_at
end

#expires_inObject (readonly)

Returns the value of attribute expires_in.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def expires_in
  @expires_in
end

#refresh_tokenObject (readonly)

Returns the value of attribute refresh_token.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def refresh_token
  @refresh_token
end

#scopeObject (readonly)

Returns the value of attribute scope.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def scope
  @scope
end

#token_typeObject (readonly)

Returns the value of attribute token_type.



6
7
8
# File 'lib/brl/auth/token.rb', line 6

def token_type
  @token_type
end