Sha256: de573f63193262f28c177a41db13df2bffde3e395d9284399d13753398043fcc

Contents?: true

Size: 493 Bytes

Versions: 28

Compression:

Stored size: 493 Bytes

Contents

module FbGraph
  module Connections
    module Senders
      def senders(options = {})
        users = if @_senders_ && options.blank?
          self.connection(:senders, options.merge(:cached_collection => @_senders_))
        else
          self.connection(:senders, options)
        end
        users.map! do |user|
          User.new(user.delete(:id), user.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
fb_graph-1.8.0 lib/fb_graph/connections/senders.rb
fb_graph-1.8.0.alpha2 lib/fb_graph/connections/senders.rb
fb_graph-1.7.5 lib/fb_graph/connections/senders.rb
fb_graph-1.8.0.alpha lib/fb_graph/connections/senders.rb
fb_graph-1.7.4 lib/fb_graph/connections/senders.rb
fb_graph-1.7.3 lib/fb_graph/connections/senders.rb
fb_graph-1.7.2 lib/fb_graph/connections/senders.rb
fb_graph-1.7.1 lib/fb_graph/connections/senders.rb
fb_graph-1.7.0 lib/fb_graph/connections/senders.rb
fb_graph-1.7.0.alpha2 lib/fb_graph/connections/senders.rb
fb_graph-1.6.9 lib/fb_graph/connections/senders.rb
fb_graph-1.7.0.alpha lib/fb_graph/connections/senders.rb
fb_graph-1.6.8 lib/fb_graph/connections/senders.rb
fb_graph-1.6.7 lib/fb_graph/connections/senders.rb
fb_graph-1.6.5 lib/fb_graph/connections/senders.rb
fb_graph-1.6.4 lib/fb_graph/connections/senders.rb
fb_graph-1.6.3 lib/fb_graph/connections/senders.rb
fb_graph-1.6.2 lib/fb_graph/connections/senders.rb
fb_graph-1.6.1 lib/fb_graph/connections/senders.rb
fb_graph-1.6.0 lib/fb_graph/connections/senders.rb