Sha256: b36e6526ca1c0427863e00792cde2b3b6389d1283a4b9e081ba2e9ba68a89b5b
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
class Pupil def user(target, option={}) response = self.get("/1.1/users/show.json", {guess_parameter(target) => target}.update(option)) return false unless response user = User.new(response, @access_token) return user end def search_user(keyword, option={}) response = self.get("/1.1/users/search.json", {:q => keyword}.update(option)) users = Array.new response.each do |element| user = User.new(element, @access_token) users << user end return users end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pupil-0.6.3 | lib/pupil/users.rb |