Class: Net::Flickr::People

### Home Classes Methods

### In Files

- lib/net/flickr/people.rb

### Parent

Object

### Methods

- ::new
- #find_by_email
- #find_by_username

### Class/Module Index

Quicksearch

- Net
- Net::Flickr
- Net::Flickr::APIError
- Net::Flickr::Auth
- Net::Flickr::InvalidResponse
- Net::Flickr::List
- Net::Flickr::ListError
- Net::Flickr::People
- Net::Flickr::Person
- Net::Flickr::Photo
- Net::Flickr::PhotoList
- Net::Flickr::Photos
- Net::Flickr::Tag

No matching classes.

# Net::Flickr::People

### Public Class Methods

new(flickr) click to toggle source

    # File lib/net/flickr/people.rb, line 33
    def initialize(flickr)
      @flickr = flickr
    end

### Public Instance Methods

find_by_email(email, args = {}) click to toggle source

Looks up a Flickr user based on their email address.

See flickr.com/services/api/flickr.people.findByEmail.html for details.

    # File lib/net/flickr/people.rb, line 45
    def find_by_email(email, args = {})
      args['find_email'] = email
      response = @flickr.request('flickr.people.findByEmail', args)

      return Person.new(@flickr, response.at('user'))
    end

find_by_username(username, args = {}) click to toggle source

Looks up a Flickr user based on their username.

See flickr.com/services/api/flickr.people.findByUsername.html for details.

    # File lib/net/flickr/people.rb, line 56
    def find_by_username(username, args = {})
      args['username'] = username
      response = @flickr.request('flickr.people.findByUsername', args)

      return Person.new(@flickr, response.at('user'))
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.