Sha256: f060674f346099870112276a225da9eb684b0b3b3725831e212bb5d83ba87bbc
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
module FbGraph2 class Edge module Blocked def blocked(params = {}) users = self.edge :blocked, params users.collect do |user| User.new(user[:id], user).authenticate self.access_token end end def block!(user, params = {}) self.post params.merge( user_id: Util.as_identifier(user) ), edge: :blocked end def unblock!(user, params = {}) self.delete params.merge( user_id: Util.as_identifier(user) ), edge: :blocked end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fb_graph2-0.0.4 | lib/fb_graph2/edge/blocked.rb |