Sha256: 780204528783b248fadd517a298757a4ca91cca3e9eb64a7abc28bd0c04d9cc0

Contents?: true

Size: 435 Bytes

Versions: 34

Compression:

Stored size: 435 Bytes

Contents

module FbGraph2
  class Edge
    module Offers
      def offers(params = {})
        offers = self.edge :offers, params
        offers.collect! do |offer|
          Offer.new(offer[:id], offer).authenticate self.access_token
        end
      end

      def offer!(params = {})
        offer = self.post params, edge: :offers
        Offer.new(offer[:id], params.merge(offer)).authenticate self.access_token
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fb_graph2-0.6.1 lib/fb_graph2/edge/offers.rb
fb_graph2-0.6.0 lib/fb_graph2/edge/offers.rb
fb_graph2-0.5.3 lib/fb_graph2/edge/offers.rb
fb_graph2-0.5.2 lib/fb_graph2/edge/offers.rb
fb_graph2-0.5.1 lib/fb_graph2/edge/offers.rb
fb_graph2-0.5.0 lib/fb_graph2/edge/offers.rb
fb_graph2-0.4.4 lib/fb_graph2/edge/offers.rb
fb_graph2-0.4.3 lib/fb_graph2/edge/offers.rb
fb_graph2-0.4.1 lib/fb_graph2/edge/offers.rb
fb_graph2-0.4.0 lib/fb_graph2/edge/offers.rb
fb_graph2-0.3.2 lib/fb_graph2/edge/offers.rb
fb_graph2-0.3.1 lib/fb_graph2/edge/offers.rb
fb_graph2-0.3.0 lib/fb_graph2/edge/offers.rb
fb_graph2-0.2.0 lib/fb_graph2/edge/offers.rb