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

Methods

new  

Attributes

image  [R] 
link  [R] 
providers  [R] 
title  [R] 

Public Class methods

[Source]

     # File lib/weatherhacks/lwws.rb, line 105
105:     def initialize(elt)
106:       @title = elt.elements["title"].text
107:       @link = URI.parse(elt.elements["link"].text)
108:       @image = Image.new(elt.elements["image"])
109:       @providers = Array.new
110:       elt.each_element("provider") do |provider|
111:         @providers << Provider.new(provider)
112:       end
113:     end

[Validate]