Module: GSGraph::Connections::AdConnectionObjects

Included in:
AdAccount
Defined in:
lib/gs_graph/connections/ad_connection_objects.rb

Instance Method Summary collapse

Instance Method Details

#connection_objects(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/gs_graph/connections/ad_connection_objects.rb', line 4

def connection_objects(options = {})
  connection_objects = self.connection :connectionobjects, options
  connection_objects.map! do |connection_object|
    AdConnectionObject.new connection_object[:id], connection_object.merge(
      :access_token => options[:access_token] || self.access_token
    )
  end
end