module OauthIm

Constants

CONFIGURABLE_FIELDS
DEFAULT_AUTHORIZE_URL
DEFAULT_CALLBACK_PATH
DEFAULT_TOKEN_URL
VERSION

Attributes

configuration[R]

Public Class Methods

callback_path() click to toggle source
# File lib/oauth_im.rb, line 25
def self.callback_path
  configuration&.callback_path || DEFAULT_CALLBACK_PATH
end
configure() { |proxy| ... } click to toggle source
# File lib/oauth_im.rb, line 16
def self.configure
  raise 'Already configured!' if configuration.present?

  ConfigurationProxy.new.then do |proxy|
    yield proxy
    @configuration = Configuration.new proxy
  end
end