Module: Challah::Facebook
- Defined in:
- lib/challah/facebook.rb,
lib/challah/facebook/version.rb,
lib/challah/facebook/provider.rb,
lib/challah/facebook/interface.rb,
lib/challah/facebook/interface.rb,
lib/challah/facebook/interface.rb,
lib/challah/facebook/technique.rb,
lib/challah/facebook/interfaces/base.rb,
lib/challah/facebook/interfaces/koala.rb,
lib/challah/facebook/interfaces/fb_graph.rb
Defined Under Namespace
Modules: Interfaces Classes: Interface, Provider, Technique
Constant Summary collapse
- VERSION =
"0.1.4"
Class Method Summary collapse
-
.interface ⇒ Object
The interface to use for all Facebook commands.
- .interface=(klass) ⇒ Object
-
.method_missing(method, *args) ⇒ Object
Delegate all other methods to Challah::Facebook to the interface.
- .options ⇒ Object
Class Method Details
.interface ⇒ Object
The interface to use for all Facebook commands.
Override this as needed. The Facebook interface should respond to all methods in Interfaces::Base
26 27 28 |
# File 'lib/challah/facebook.rb', line 26 def self.interface @interface ||= Interface end |
.interface=(klass) ⇒ Object
30 31 32 |
# File 'lib/challah/facebook.rb', line 30 def self.interface=(klass) @interface = klass end |
.method_missing(method, *args) ⇒ Object
Delegate all other methods to Challah::Facebook to the interface
35 36 37 |
# File 'lib/challah/facebook.rb', line 35 def self.method_missing(method, *args) self.interface.send(method, *args) end |
.options ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/challah/facebook.rb', line 9 def self. @options ||= { app_id: ENV['FACEBOOK_APP_ID'], app_secret: ENV['FACEBOOK_SECRET'], permissions: (ENV['FACEBOOK_PERMISSIONS'] || 'email').to_s.split(','), user_fields: %w( first_name last_name email ) } end |