Sha256: 87a548d8d9958d1cebd30c3b1b7335c182c81d892538adfa3cfc031526994560

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

module FbGraph
  module Connections
    module Insights
      def insights(options = {})
        options[:access_token] ||= self.access_token || get_access_token(options[:secret])
        insights = self.connection(:insights, options)
        insights.map! do |insight|
          FbGraph::Insight.new(insight.merge(:access_token => options[:access_token]))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb_graph-0.7.3 lib/fb_graph/connections/insights.rb
fb_graph-0.7.2 lib/fb_graph/connections/insights.rb
fb_graph-0.7.1 lib/fb_graph/connections/insights.rb
fb_graph-0.7.0 lib/fb_graph/connections/insights.rb