Module: FbGraph::Connections::Maybe
- Included in:
- Event
- Defined in:
- lib/fb_graph/connections/maybe.rb
Instance Method Summary collapse
Instance Method Details
#maybe(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph/connections/maybe.rb', line 4 def maybe( = {}) members = FbGraph::Collection.new(get(.merge(:connection => 'maybe'))) members.map! do |member| User.new(member.delete(:id), member) end end |
#maybe!(options = {}) ⇒ Object
11 12 13 |
# File 'lib/fb_graph/connections/maybe.rb', line 11 def maybe!( = {}) post(.merge(:connection => 'maybe')) end |