Method: Verizon::OauthToken#initialize

Defined in:
lib/verizon/models/oauth_token.rb

#initialize(access_token = nil, token_type = nil, expires_in = SKIP, scope = SKIP, expiry = SKIP, refresh_token = SKIP) ⇒ OauthToken

Returns a new instance of OauthToken.



65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/verizon/models/oauth_token.rb', line 65

def initialize(access_token = nil,
               token_type = nil,
               expires_in = SKIP,
               scope = SKIP,
               expiry = SKIP,
               refresh_token = SKIP)
  @access_token = access_token
  @token_type = token_type
  @expires_in = expires_in unless expires_in == SKIP
  @scope = scope unless scope == SKIP
  @expiry = expiry unless expiry == SKIP
  @refresh_token = refresh_token unless refresh_token == SKIP
end