Sha256: 7a03dbd338a5a43bb51fd441a7b59e776f038ec093329d124f363e8a00a9566d

Contents?: true

Size: 550 Bytes

Versions: 62

Compression:

Stored size: 550 Bytes

Contents

module FbGraph
  module Connections
    module Scores
      def scores(options = {})
        scores = self.connection :scores, options
        scores.map! do |score|
          Score.new score[:id], score.merge(
            :access_token => options[:access_token] || self.access_token
          )
        end
      end

      def score!(score, options = {})
        post options.merge(:connection => :scores, :score => score)
      end

      def unscore!(options = {})
        destroy options.merge(:connection => :scores)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
fb_graph-2.7.17 lib/fb_graph/connections/scores.rb
fb_graph-2.7.16 lib/fb_graph/connections/scores.rb
fb_graph-2.7.15 lib/fb_graph/connections/scores.rb
fb_graph-2.7.14 lib/fb_graph/connections/scores.rb
fb_graph-2.7.13 lib/fb_graph/connections/scores.rb
fb_graph-2.7.12 lib/fb_graph/connections/scores.rb
fb_graph-2.7.11 lib/fb_graph/connections/scores.rb
fb_graph-2.7.10 lib/fb_graph/connections/scores.rb
fb_graph-2.7.9 lib/fb_graph/connections/scores.rb
fb_graph-2.7.8 lib/fb_graph/connections/scores.rb
fb_graph-2.7.7 lib/fb_graph/connections/scores.rb
fb_graph-2.7.6 lib/fb_graph/connections/scores.rb
fb_graph-2.7.5 lib/fb_graph/connections/scores.rb
fb_graph-2.7.4 lib/fb_graph/connections/scores.rb
fb_graph-2.7.3 lib/fb_graph/connections/scores.rb
fb_graph-2.7.2 lib/fb_graph/connections/scores.rb
fb_graph-2.7.1 lib/fb_graph/connections/scores.rb
fb_graph-2.7.0 lib/fb_graph/connections/scores.rb
fb_graph-2.6.7 lib/fb_graph/connections/scores.rb
fb_graph-2.6.6 lib/fb_graph/connections/scores.rb