Module: FbGraph::Connections::Picture

Included in:
Application, Event, Group, Page, User
Defined in:
lib/fb_graph/connections/picture.rb

Instance Method Summary collapse

Instance Method Details

#picture(size = nil) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/fb_graph/connections/picture.rb', line 4

def picture(size = nil)
  _endpoint_ = "#{self.endpoint}/picture"
  if size
    "#{_endpoint_}?type=#{size}"
  else
    _endpoint_
  end
end