Class: MiniFB::Photos
- Inherits:
-
Object
- Object
- MiniFB::Photos
- Defined in:
- lib/photo_mini_fb.rb
Instance Method Summary collapse
- #get(params) ⇒ Object
-
#initialize(session) ⇒ Photos
constructor
A new instance of Photos.
Constructor Details
#initialize(session) ⇒ Photos
Returns a new instance of Photos.
105 106 107 |
# File 'lib/photo_mini_fb.rb', line 105 def initialize(session) @session = session end |
Instance Method Details
#get(params) ⇒ Object
109 110 111 112 113 114 115 116 |
# File 'lib/photo_mini_fb.rb', line 109 def get(params) pids = params["pids"] if !pids.nil? && pids.is_a?(Array) pids = pids.join(",") params["pids"] = pids end @session.call("photos.get", params) end |