class CatAPI::ImageSearch

Attributes

results[R]

Public Class Methods

new(xml) click to toggle source
# File lib/cat_api/image_search.rb, line 7
def initialize(xml)
  @results = xml.xpath('//image').map do |cat|
    CatAPI::Image.new cat
  end
end