Class: Facebook::APIProxy
- Defined in:
- lib/ramaze/contrib/facebook/facebook.rb
Instance Method Summary collapse
-
#initialize(name, client) ⇒ APIProxy
constructor
A new instance of APIProxy.
- #method_missing(method, opts = {}) ⇒ Object
Constructor Details
#initialize(name, client) ⇒ APIProxy
Returns a new instance of APIProxy.
14 15 16 |
# File 'lib/ramaze/contrib/facebook/facebook.rb', line 14 def initialize name, client @name, @client = name, client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, opts = {}) ⇒ Object
18 19 20 |
# File 'lib/ramaze/contrib/facebook/facebook.rb', line 18 def method_missing method, opts = {} @client.call "#{@name}.#{method}", opts end |