Module: Omnisocial
- Defined in:
- lib/omnisocial.rb,
lib/omnisocial/engine.rb,
lib/omnisocial/version.rb,
app/models/omnisocial/user.rb,
lib/omnisocial/service_config.rb,
app/helpers/omnisocial/auth_helper.rb,
app/models/omnisocial/login_account.rb,
app/models/omnisocial/twitter_account.rb,
app/models/omnisocial/facebook_account.rb,
app/controllers/omnisocial/auth_controller.rb,
lib/generators/omnisocial/omnisocial_generator.rb
Defined Under Namespace
Modules: AuthHelper, Generators Classes: AuthController, Engine, FacebookAccount, LoginAccount, ServiceConfig, TwitterAccount, User
Constant Summary collapse
- VERSION =
'0.1.2.7'
- @@service_configs =
{}
Class Method Summary collapse
- .facebook(app_key, app_secret, options = {}) ⇒ Object
- .setup {|_self| ... } ⇒ Object
-
.twitter(app_key, app_secret, options = {}) ⇒ Object
config.twitter APP_KEY, APP_SECRET, :scope => [‘foo’, ‘bar’].
Class Method Details
.facebook(app_key, app_secret, options = {}) ⇒ Object
17 18 19 |
# File 'lib/omnisocial.rb', line 17 def self.facebook(app_key, app_secret, = {}) @@service_configs[:facebook] = Omnisocial::ServiceConfig.new(app_key, app_secret, ) end |
.setup {|_self| ... } ⇒ Object
8 9 10 |
# File 'lib/omnisocial.rb', line 8 def self.setup yield self end |
.twitter(app_key, app_secret, options = {}) ⇒ Object
config.twitter APP_KEY, APP_SECRET, :scope => [‘foo’, ‘bar’]
13 14 15 |
# File 'lib/omnisocial.rb', line 13 def self.twitter(app_key, app_secret, = {}) @@service_configs[:twitter] = Omnisocial::ServiceConfig.new(app_key, app_secret, ) end |