Class: Facebook::APIProxy

Inherits:
Object show all
Defined in:
lib/ramaze/contrib/facebook/facebook.rb

Instance Method Summary collapse

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