Sha256: 9b2e93946efa303859cc93a4050f0eab31de78f1b86431592332a660bc0d86ad

Contents?: true

Size: 563 Bytes

Versions: 21

Compression:

Stored size: 563 Bytes

Contents

module FbGraph
  module Connections
    module Outbox
      def outbox(options = {})
        threads = self.connection :outbox, options
        threads.map! do |thread|
          if thread[:message]
            Thread::BeforeTransition.new thread[:id], thread.merge(
              :access_token => options[:access_token] || self.access_token
            )
          else
            Thread.new thread[:id], thread.merge(
              :access_token => options[:access_token] || self.access_token
            )
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fb_graph-2.4.18 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.17 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.16 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.15 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.14 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.13 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.12 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.11 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.10 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.9 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.8 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.7 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.6 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.4 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.3 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.2 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.1 lib/fb_graph/connections/outbox.rb
fb_graph-2.4.0 lib/fb_graph/connections/outbox.rb
fb_graph-2.3.2 lib/fb_graph/connections/outbox.rb
fb_graph-2.3.1 lib/fb_graph/connections/outbox.rb