Class: MiniFB::Photos
- Inherits:
-
Object
- Object
- MiniFB::Photos
- Defined in:
- lib/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.
144 145 146 |
# File 'lib/mini_fb.rb', line 144 def initialize(session) @session = session end |
Instance Method Details
#get(params) ⇒ Object
148 149 150 151 152 153 154 155 |
# File 'lib/mini_fb.rb', line 148 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 |