Class: Weatherboy::Radar

Inherits:
Object
  • Object
show all
Defined in:
lib/weatherboy/radar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ Radar

Returns a new instance of Radar.



6
7
8
9
# File 'lib/weatherboy/radar.rb', line 6

def initialize(doc)
  @image_url = doc.elements['image_url'].text
  @url = doc.elements['url'].text
end

Instance Attribute Details

#image_urlObject (readonly)

Returns the value of attribute image_url.



4
5
6
# File 'lib/weatherboy/radar.rb', line 4

def image_url
  @image_url
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/weatherboy/radar.rb', line 4

def url
  @url
end