Class: Flickr::Api::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr/api/abstract.rb,
lib/flickr/api/abstract/params_processor.rb

Overview

This class abstracts the interface for communication with the Flickr API.

Direct Known Subclasses

General, License, Person, Photo, Set, UploadTicket

Instance Method Summary collapse

Instance Method Details

#find(id) ⇒ Object

Examples:

person = Flickr.photos.find("1")
person.photos.each do |photo|
  # ...
end

Parameters:

  • id (String)

    ID of the object to be instantiated


39
40
41
42
# File 'lib/flickr/api/abstract.rb', line 39

def find(id)
  object_class = self.class.object_class
  object_class.new({"id" => id}, @access_token)
end