Sha256: 7690524374a44fd1d8ef3f42a9190844f6ef87085b719cc2c370a502e62ff7cb

Contents?: true

Size: 579 Bytes

Versions: 26

Compression:

Stored size: 579 Bytes

Contents

module FbGraph
  module Connections
    module Notes
      def notes(options = {})
        notes = self.connection(:notes, options)
        notes.map! do |note|
          Note.new(note.delete(:id), note.merge(
            :access_token => options[:access_token] || self.access_token
          ))
        end
      end

      def note!(options = {})
        note = post(options.merge(:connection => 'notes'))
        Note.new(note.delete(:id), options.merge(note).merge(
          :access_token => options[:access_token] || self.access_token
        ))
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
fb_graph-1.2.1 lib/fb_graph/connections/notes.rb
fb_graph-1.2.0 lib/fb_graph/connections/notes.rb
fb_graph-1.1.7 lib/fb_graph/connections/notes.rb
fb_graph-1.1.6 lib/fb_graph/connections/notes.rb
fb_graph-1.1.5 lib/fb_graph/connections/notes.rb
fb_graph-1.1.4 lib/fb_graph/connections/notes.rb
fb_graph-1.1.3 lib/fb_graph/connections/notes.rb
fb_graph-1.1.2 lib/fb_graph/connections/notes.rb
fb_graph-1.1.1 lib/fb_graph/connections/notes.rb
fb_graph-1.1.0 lib/fb_graph/connections/notes.rb
fb_graph-1.0.7 lib/fb_graph/connections/notes.rb
fb_graph-1.0.6 lib/fb_graph/connections/notes.rb
fb_graph-1.0.5 lib/fb_graph/connections/notes.rb
palidanx-fb_graph-1.0.4 lib/fb_graph/connections/notes.rb
fb_graph-1.0.4 lib/fb_graph/connections/notes.rb
fb_graph-1.0.3 lib/fb_graph/connections/notes.rb
fb_graph-1.0.2 lib/fb_graph/connections/notes.rb
fb_graph-1.0.1 lib/fb_graph/connections/notes.rb
fb_graph-1.0.0 lib/fb_graph/connections/notes.rb
fb_graph-0.8.0 lib/fb_graph/connections/notes.rb