Class: PeopleDoc::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/people_doc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token, token_type, expires_in) ⇒ Token

Returns a new instance of Token.



33
34
35
36
37
# File 'lib/people_doc.rb', line 33

def initialize(access_token, token_type, expires_in)
  @access_token = access_token
  @token_type = token_type
  @expires_in = expires_in
end

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



31
32
33
# File 'lib/people_doc.rb', line 31

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in.



31
32
33
# File 'lib/people_doc.rb', line 31

def expires_in
  @expires_in
end

#token_typeObject

Returns the value of attribute token_type.



31
32
33
# File 'lib/people_doc.rb', line 31

def token_type
  @token_type
end