class FlickrawObjects::Person
Public Class Methods
find_by_username(username)
click to toggle source
# File flickraw_objects.rb, line 11 def self.find_by_username(username) response = flickr.people.findByUsername username: username Person.new(response) end
Public Instance Methods
first_date()
click to toggle source
# File flickraw_objects.rb, line 55 attribute :first_date, type: Time, path: [:firstdate]
get_info()
click to toggle source
# File flickraw_objects.rb, line 36 def get_info @get_info ||= flickr.people.getInfo user_id: id end
get_photos(params = {})
click to toggle source
# File flickraw_objects.rb, line 16 def get_photos(params = {}) result = Array.new response = flickr.people.getPhotos user_id: id response.each do |photo| result << Photo.new(photo) end result end
Also aliased as: photos
get_photosets(params = {})
click to toggle source
# File flickraw_objects.rb, line 26 def get_photosets(params = {}) result = Array.new response = flickr.photosets.getList user_id: id response.each do |photoset| result << Photoset.new(photoset) end result end
Also aliased as: photosets
id()
click to toggle source
# File flickraw_objects.rb, line 41 attribute :id
professional()
click to toggle source
# File flickraw_objects.rb, line 51 attribute :professional, type: Boolean, path: [:ispro]
realname()
click to toggle source
# File flickraw_objects.rb, line 47 attribute :realname, path: [:realname]