# File lib/fleakr/objects/photo.rb, line 80 def self.upload(filename, options = {}) response = Fleakr::Api::UploadRequest.with_response!(filename, :create, options) photo = Photo.new(response.body) Photo.find_by_id(photo.id) end