Sha256: 17a377ab6d4019573a8ebc421531e9dc602557b84ba1266ef114122c22893135

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fb_graph-0.2.2 lib/fb_graph/connections/notes.rb
fb_graph-0.2.1 lib/fb_graph/connections/notes.rb
fb_graph-0.2.0 lib/fb_graph/connections/notes.rb
fb_graph-0.1.3 lib/fb_graph/connections/notes.rb
fb_graph-0.1.2 lib/fb_graph/connections/notes.rb
fb_graph-0.1.1 lib/fb_graph/connections/notes.rb
fb_graph-0.1.0 lib/fb_graph/connections/notes.rb
fb_graph-0.0.8 lib/fb_graph/connections/notes.rb
fb_graph-0.0.7 lib/fb_graph/connections/notes.rb