Sha256: 7cc460f73032d946001bd0a6708760d5292e7d8f609a2f61db9b273ab065e1bf

Contents?: true

Size: 421 Bytes

Versions: 23

Compression:

Stored size: 421 Bytes

Contents

module FbGraph2
  class Edge
    module Scores
      def scores(params = {})
        scores = self.edge :scores, params
        scores.collect! do |score|
          Struct::Score.new score
        end
      end

      def score!(score, params = {})
        self.post params.merge(score: score), edge: :scores
      end

      def unscore!(params = {})
        self.delete params, edge: :scores
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/edge/scores.rb
fb_graph2-1.2.0 lib/fb_graph2/edge/scores.rb
fb_graph2-1.1.1 lib/fb_graph2/edge/scores.rb
fb_graph2-1.1.0 lib/fb_graph2/edge/scores.rb
fb_graph2-1.0.1 lib/fb_graph2/edge/scores.rb
fb_graph2-1.0.0 lib/fb_graph2/edge/scores.rb
fb_graph2-0.9.1 lib/fb_graph2/edge/scores.rb
fb_graph2-0.9.0 lib/fb_graph2/edge/scores.rb
fb_graph2-0.8.0 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.9 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.8 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.7 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.6 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.5 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.4 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.3 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.2 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.1 lib/fb_graph2/edge/scores.rb
fb_graph2-0.7.0 lib/fb_graph2/edge/scores.rb
fb_graph2-0.6.2 lib/fb_graph2/edge/scores.rb