Method: FbGraph::Searchable.search
- Defined in:
- lib/fb_graph/searchable.rb
.search(query, options = {}) {|collection| ... } ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/fb_graph/searchable.rb', line 3 def self.search(query, = {}) klass = .delete(:class) || Searchable collection = Collection.new( Node.new(:search).send(:get, .merge(:q => query)) ) yield collection if block_given? Searchable::Result.new(query, klass, .merge(:collection => collection)) end |