Class WeatherHacks::LWWS::Image
In: lib/weatherhacks/lwws.rb
Parent: Object

Methods

new  

Attributes

height  [R] 
link  [R] 
title  [R] 
url  [R] 
width  [R] 

Public Class methods

[Source]

    # File lib/weatherhacks/lwws.rb, line 59
59:     def initialize(elt)
60:       @title = elt.elements["title"].text
61:       @link = URI.parse(elt.elements["link"].text)
62:       @url = URI.parse(elt.elements["url"].text)
63:       @width = elt.elements["width"].text.to_i
64:       @height = elt.elements["height"].text.to_i
65:     end

[Validate]