Module: FbGraph::Connections::Noreply
- Included in:
- Event
- Defined in:
- lib/fb_graph/connections/noreply.rb
Instance Method Summary collapse
- #noreply(options = {}) ⇒ Object (also: #no_reply)
- #noreply?(user, options = {}) ⇒ Boolean (also: #no_reply?)
Instance Method Details
#noreply(options = {}) ⇒ Object Also known as: no_reply
4 5 6 7 8 9 10 11 |
# File 'lib/fb_graph/connections/noreply.rb', line 4 def noreply( = {}) members = self.connection :noreply, members.map! do |member| User.new member[:id], member.merge( :access_token => [:access_token] || self.access_token ) end end |
#noreply?(user, options = {}) ⇒ Boolean Also known as: no_reply?
14 15 16 17 18 19 |
# File 'lib/fb_graph/connections/noreply.rb', line 14 def noreply?(user, = {}) member = self.connection( :noreply, .merge(:connection_scope => user.identifier) ).first member.present? end |