Module: FbGraph::Connections::Links
Instance Method Summary collapse
Instance Method Details
#link!(options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/fb_graph/connections/links.rb', line 11 def link!( = {}) link = post(.merge(:connection => 'links')) Link.new(link.delete(:id), .merge(link)) end |
#links(options = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph/connections/links.rb', line 4 def links( = {}) links = FbGraph::Collection.new(get(.merge(:connection => 'links'))) links.map! do |link| Link.new(link.delete(:id), link) end end |