class Flickrie::Collection

You can think of this as a richer Array. It defines some pagination attributes (you can even use it with [will_paginate](github.com/mislav/will_paginate), see {Flickrie.pagination}), and some other useful methods.

Public Instance Methods

find(id = nil) click to toggle source

Finds an object by ID (just like ActiveRecord does). This is just a shorthand for

find { |object| object.id == id }
Calls superclass method
# File lib/flickrie/collection.rb, line 38
def find(id = nil)
  if block_given?
    super
  else
    super() { |object| object.id == id.to_s }
  end
end