Sha256: a1271294fa3652415e5497b5b5b1a67e9ea7ea13b6a44af6633ea9c07b3ba751

Contents?: true

Size: 560 Bytes

Versions: 21

Compression:

Stored size: 560 Bytes

Contents

module FbGraph
  module Connections
    module Inbox
      def inbox(options = {})
        threads = self.connection :inbox, 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/inbox.rb
fb_graph-2.4.17 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.16 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.15 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.14 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.13 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.12 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.11 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.10 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.9 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.8 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.7 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.6 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.4 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.3 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.2 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.1 lib/fb_graph/connections/inbox.rb
fb_graph-2.4.0 lib/fb_graph/connections/inbox.rb
fb_graph-2.3.2 lib/fb_graph/connections/inbox.rb
fb_graph-2.3.1 lib/fb_graph/connections/inbox.rb