Class: Googl::OAuth2::Native
- Defined in:
- lib/googl/oauth2/native.rb
Constant Summary
Constants included from Utils
Utils::API_CLIENT_LOGIN_URL, Utils::API_HISTORY_URL, Utils::API_URL, Utils::SCOPE_URL
Instance Attribute Summary
Attributes included from Utils
#access_token, #client_id, #client_secret, #expires_at, #expires_in, #items, #refresh_token
Instance Method Summary collapse
- #authorize_url ⇒ Object
-
#initialize(client_id, client_secret) ⇒ Native
constructor
A new instance of Native.
- #request_access_token(code) ⇒ Object
Methods included from Utils
#authorized?, #expires?, #history
Constructor Details
#initialize(client_id, client_secret) ⇒ Native
Returns a new instance of Native.
9 10 11 12 |
# File 'lib/googl/oauth2/native.rb', line 9 def initialize(client_id, client_secret) self.client_id = client_id self.client_secret = client_secret end |