Parent

Methods

Class/Module Index [+]

Quicksearch

Weatherman::Image

Image

A hash-like object with the weather image attributes (width, height, url, etc..)

Public Class Methods

new(doc) click to toggle source
# File lib/yahoo_weatherman/image.rb, line 7
def initialize(doc)
  @image_root = doc
end

Public Instance Methods

[](attr) click to toggle source
# File lib/yahoo_weatherman/image.rb, line 11
def [](attr)
  @image_root.xpath(attr).first.content 
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.