Class: Weatherboy::Radar
- Inherits:
-
Object
- Object
- Weatherboy::Radar
- Defined in:
- lib/weatherboy/radar.rb
Instance Attribute Summary collapse
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(doc) ⇒ Radar
constructor
A new instance of Radar.
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_url ⇒ Object (readonly)
Returns the value of attribute image_url.
4 5 6 |
# File 'lib/weatherboy/radar.rb', line 4 def image_url @image_url end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/weatherboy/radar.rb', line 4 def url @url end |