Class: Adparlor::Facebook::GraphApi::User
- Inherits:
-
GraphObject
- Object
- GraphObject
- Adparlor::Facebook::GraphApi::User
- Includes:
- Fields::User, Traits::Methods
- Defined in:
- lib/adparlor/facebook/graph_api/user.rb
Constant Summary
Constants included from Fields::User
Constants included from Fields::FieldDecorator
Fields::FieldDecorator::GLOBAL_FIELDS
Instance Attribute Summary
Attributes inherited from GraphObject
Instance Method Summary collapse
Methods included from Traits::Methods
#create, #destroy, included, #update
Methods inherited from GraphObject
#batch, create, #create, data_pass_through, destroy, #destroy, get, #initialize, parse_data_for_collection, read, respond_for_data, #to_hash, #to_json, update, #update
Methods included from Api
#base_uri, #conn, #conn_multi, #delete, #get, #post, #proxy_api_key
Methods included from Fields::FieldDecorator
Constructor Details
This class inherits a constructor from Adparlor::Facebook::GraphApi::GraphObject
Instance Method Details
#adaccounts ⇒ Object
9 10 11 |
# File 'lib/adparlor/facebook/graph_api/user.rb', line 9 def adaccounts @adaccounts ||= CollectionProxy.new AdAccount, "/#{id}/adaccounts", access_token end |
#pages ⇒ Object
13 14 15 |
# File 'lib/adparlor/facebook/graph_api/user.rb', line 13 def pages @pages ||= CollectionProxy.new PageAndPlace, "/#{id}/accounts", access_token end |
#places ⇒ Object
17 18 19 |
# File 'lib/adparlor/facebook/graph_api/user.rb', line 17 def places @places ||= CollectionProxy.new PageAndPlace, "/#{id}/accounts", access_token, nil, is_place: true end |