Sha256: 6cfb7cf8f2fd6bf440d6fe6f807bb68c66be135bd367096382fdf9840d4ef37e

Contents?: true

Size: 387 Bytes

Versions: 10

Compression:

Stored size: 387 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|
          Insight.new(insight.merge(:access_token => options[:access_token]))
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
fb_graph-1.0.7 lib/fb_graph/connections/insights.rb
fb_graph-1.0.6 lib/fb_graph/connections/insights.rb
fb_graph-1.0.5 lib/fb_graph/connections/insights.rb
palidanx-fb_graph-1.0.4 lib/fb_graph/connections/insights.rb
fb_graph-1.0.4 lib/fb_graph/connections/insights.rb
fb_graph-1.0.3 lib/fb_graph/connections/insights.rb
fb_graph-1.0.2 lib/fb_graph/connections/insights.rb
fb_graph-1.0.1 lib/fb_graph/connections/insights.rb
fb_graph-1.0.0 lib/fb_graph/connections/insights.rb
fb_graph-0.8.0 lib/fb_graph/connections/insights.rb