Class: FbGraph::Query
Instance Attribute Summary (collapse)
-
- (Object) query
Returns the value of attribute query.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary (collapse)
- - (Object) fetch(params = {})
-
- (Query) initialize(query, access_token = nil)
constructor
A new instance of Query.
Methods inherited from Node
#connection, #destroy, fetch, #update
Methods included from Comparison
Constructor Details
- (Query) initialize(query, access_token = nil)
A new instance of Query
5 6 7 8 |
# File 'lib/fb_graph/query.rb', line 5 def initialize(query, access_token = nil) super 'fql', :access_token => access_token @query = query end |
Instance Attribute Details
- (Object) query
Returns the value of attribute query
3 4 5 |
# File 'lib/fb_graph/query.rb', line 3 def query @query end |
Instance Method Details
- (Object) fetch(params = {})
10 11 12 13 14 |
# File 'lib/fb_graph/query.rb', line 10 def fetch(params = {}) handle_response do http_client.get endpoint, build_params(params) end end |