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:, tokenize:, default_scope: 'refresh_token') ⇒ Object
Instance Method Details
#oauth_settings ⇒ Object
33 34 35 36 37 |
# File 'lib/dwh/adapters/open_authorizable.rb', line 33 def oauth_settings raise OAuthError, 'Please configure oauth settings by calling oauth_with class method.' unless @oauth_settings @oauth_settings end |
#oauth_with(authorize:, tokenize:, default_scope: 'refresh_token') ⇒ Object
29 30 31 |
# File 'lib/dwh/adapters/open_authorizable.rb', line 29 def oauth_with(authorize:, tokenize:, default_scope: 'refresh_token') @oauth_settings = { authorize: , tokenize: tokenize, default_scope: default_scope } end |