Class: Weatherboy::Webcam
- Inherits:
-
Object
- Object
- Weatherboy::Webcam
- Defined in:
- lib/weatherboy/webcam.rb
Instance Attribute Summary collapse
-
#assoc_station_id ⇒ Object
readonly
Returns the value of attribute assoc_station_id.
-
#cam_url ⇒ Object
readonly
Returns the value of attribute cam_url.
-
#cameratype ⇒ Object
readonly
Returns the value of attribute cameratype.
-
#camid ⇒ Object
readonly
Returns the value of attribute camid.
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#handle ⇒ Object
readonly
Returns the value of attribute handle.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#link_text ⇒ Object
readonly
Returns the value of attribute link_text.
-
#neighborhood ⇒ Object
readonly
Returns the value of attribute neighborhood.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
-
#widget_url ⇒ Object
readonly
Returns the value of attribute widget_url.
-
#zip ⇒ Object
readonly
Returns the value of attribute zip.
Instance Method Summary collapse
-
#initialize(doc) ⇒ Webcam
constructor
A new instance of Webcam.
Constructor Details
#initialize(doc) ⇒ Webcam
Returns a new instance of Webcam.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/weatherboy/webcam.rb', line 5 def initialize(doc) @handle = doc.elements['handle'].text @camid = doc.elements['camid'].text @assoc_station_id = doc.elements['assoc_station_id'].text @link = doc.elements['link'].text @link_text = doc.elements['linktext'].text @organization = doc.elements['organization'].text @cameratype = doc.elements['cameratype'].text @neighborhood = doc.elements['neighborhood'].text @zip = doc.elements['zip'].text @city = doc.elements['city'].text @state = doc.elements['state'].text @country = doc.elements['country'].text @updated = doc.elements['updated'].text @image_url = doc.elements['CURRENTIMAGEURL'].text = doc.elements['WIDGETCURRENTIMAGEURL'].text @cam_url = doc.elements['CAMURL'].text end |
Instance Attribute Details
#assoc_station_id ⇒ Object (readonly)
Returns the value of attribute assoc_station_id.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def assoc_station_id @assoc_station_id end |
#cam_url ⇒ Object (readonly)
Returns the value of attribute cam_url.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def cam_url @cam_url end |
#cameratype ⇒ Object (readonly)
Returns the value of attribute cameratype.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def cameratype @cameratype end |
#camid ⇒ Object (readonly)
Returns the value of attribute camid.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def camid @camid end |
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def country @country end |
#handle ⇒ Object (readonly)
Returns the value of attribute handle.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def handle @handle end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def image_url @image_url end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def link @link end |
#link_text ⇒ Object (readonly)
Returns the value of attribute link_text.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def link_text @link_text end |
#neighborhood ⇒ Object (readonly)
Returns the value of attribute neighborhood.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def neighborhood @neighborhood end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def organization @organization end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def state @state end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def updated @updated end |
#widget_url ⇒ Object (readonly)
Returns the value of attribute widget_url.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def end |
#zip ⇒ Object (readonly)
Returns the value of attribute zip.
3 4 5 |
# File 'lib/weatherboy/webcam.rb', line 3 def zip @zip end |