Module: Simple::OAuth2

Defined in:
lib/simple_oauth2.rb,
lib/simple_oauth2/scopes.rb,
lib/simple_oauth2/helpers.rb,
lib/simple_oauth2/version.rb,
lib/simple_oauth2/responses.rb,
lib/simple_oauth2/uniq_token.rb,
lib/simple_oauth2/configuration.rb,
lib/simple_oauth2/strategies/base.rb,
lib/simple_oauth2/generators/base.rb,
lib/simple_oauth2/generators/token.rb,
lib/simple_oauth2/strategies/password.rb,
lib/simple_oauth2/mixins/nobrainer/client.rb,
lib/simple_oauth2/mixins/nobrainer/access_token.rb,
lib/simple_oauth2/mixins/nobrainer/access_grant.rb,
lib/simple_oauth2/configuration/class_accessors.rb

Overview

Semantic versioning

Defined Under Namespace

Modules: ClassAccessors, Generators, Helpers, NoBrainer, Strategies, UniqToken, VERSION Classes: Configuration, Responses, Scopes

Class Method Summary collapse

Class Method Details

.configObject


29
30
31
# File 'lib/simple_oauth2.rb', line 29

def config
  @config ||= Simple::OAuth2::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:


33
34
35
# File 'lib/simple_oauth2.rb', line 33

def configure
  yield config if block_given?
end

.gem_versionGem::Version

Simple::OAuth2 version


7
8
9
# File 'lib/simple_oauth2/version.rb', line 7

def self.gem_version
  Gem::Version.new VERSION::STRING
end