Module: DWH::Adapters::OpenAuthorizable::ClassMethods
- Defined in:
- lib/dwh/adapters/open_authorizable.rb
Overview
rubcop:disable Style/DocumentationModule
Instance Method Summary collapse
- #oauth_settings ⇒ Object
- #oauth_with(authorize: nil, tokenize: nil, default_scope: 'refresh_token') ⇒ Object
Instance Method Details
#oauth_settings ⇒ Object
35 36 37 38 39 |
# File 'lib/dwh/adapters/open_authorizable.rb', line 35 def oauth_settings raise OAuthError, 'Please configure oauth settings by calling oauth_with class method.' unless @oauth_settings @oauth_settings end |
#oauth_with(authorize: nil, tokenize: nil, default_scope: 'refresh_token') ⇒ Object
31 32 33 |
# File 'lib/dwh/adapters/open_authorizable.rb', line 31 def oauth_with(authorize: nil, tokenize: nil, default_scope: 'refresh_token') @oauth_settings = { authorize: , tokenize: tokenize, default_scope: default_scope } end |