Class: Flickry::Person
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#attributes
Methods inherited from SuperStruct
#[], #[]=, #each, #each_pair, #members
Constructor Details
#initialize(user) ⇒ Person
Returns a new instance of Person.
3
4
5
6
|
# File 'lib/flickry/person.rb', line 3
def initialize(user)
super(nil)
(user, [:location, :nsid, :realname, :username, :photosurl, :profileurl])
end
|
Class Method Details
.find(nsid) ⇒ Object
8
9
10
11
12
13
14
|
# File 'lib/flickry/person.rb', line 8
def self.find(nsid)
if person = flickr.people.getInfo(:user_id => nsid)
return new(person)
else
return nil
end
end
|
Instance Method Details
#photos ⇒ Object
20
21
22
|
# File 'lib/flickry/person.rb', line 20
def photos
clean(self.photosurl)
end
|
#profile ⇒ Object
16
17
18
|
# File 'lib/flickry/person.rb', line 16
def profile
clean(self.profileurl)
end
|