Class: Adparlor::Facebook::GraphApi::Page
- Inherits:
-
GraphObject
- Object
- GraphObject
- Adparlor::Facebook::GraphApi::Page
- Includes:
- Fields::Page, Traits::Methods
- Defined in:
- lib/adparlor/facebook/graph_api/page.rb
Constant Summary
Constants included from Fields::Page
Constants included from Fields::FieldDecorator
Fields::FieldDecorator::GLOBAL_FIELDS
Instance Attribute Summary
Attributes inherited from GraphObject
Instance Method Summary collapse
- #ads_posts ⇒ Object
- #leadgen_forms ⇒ Object
- #page_backed_instagram_accounts ⇒ Object
- #picture ⇒ Object
- #promotable_posts ⇒ Object
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
#ads_posts ⇒ Object
13 14 15 |
# File 'lib/adparlor/facebook/graph_api/page.rb', line 13 def ads_posts @ads_posts ||= CollectionProxy.new Post, "/#{id}/ads_posts", access_token, nil, include_inline_create: true end |
#leadgen_forms ⇒ Object
25 26 27 |
# File 'lib/adparlor/facebook/graph_api/page.rb', line 25 def leadgen_forms @leadgen_forms ||= CollectionProxy.new(LeadgenForm, "/#{id}/leadgen_forms", access_token) end |
#page_backed_instagram_accounts ⇒ Object
21 22 23 |
# File 'lib/adparlor/facebook/graph_api/page.rb', line 21 def page_backed_instagram_accounts @page_backed_instagram_accounts ||= CollectionProxy.new(InstagramAccount, "/#{id}/page_backed_instagram_accounts", access_token) end |
#picture ⇒ Object
17 18 19 |
# File 'lib/adparlor/facebook/graph_api/page.rb', line 17 def picture @picture ||= CollectionProxy.new(Picture, "/#{id}/picture", access_token) end |
#promotable_posts ⇒ Object
9 10 11 |
# File 'lib/adparlor/facebook/graph_api/page.rb', line 9 def promotable_posts @promotable_posts ||= CollectionProxy.new(Post, "/#{id}/promotable_posts", access_token) end |