Module: GSGraph::Connections::AdAccounts
- Included in:
- User
- Defined in:
- lib/gs_graph/connections/ad_accounts.rb
Instance Method Summary collapse
Instance Method Details
#ad_accounts(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gs_graph/connections/ad_accounts.rb', line 4 def ad_accounts( = {}) ad_accounts = self.connection :adaccounts, ad_accounts.map! do |ad_account| AdAccount.new ad_account[:id], ad_account.merge( :access_token => [:access_token] || self.access_token ) end end |