Class: Aemet::Crawler
- Inherits:
-
Object
- Object
- Aemet::Crawler
- Defined in:
- lib/aemet/crawler.rb
Instance Attribute Summary collapse
-
#aemet_id ⇒ Object
Returns the value of attribute aemet_id.
-
#city ⇒ Object
Returns the value of attribute city.
-
#search ⇒ Object
readonly
Returns the value of attribute search.
Instance Method Summary collapse
-
#initialize(search) ⇒ Crawler
constructor
A new instance of Crawler.
Constructor Details
#initialize(search) ⇒ Crawler
Returns a new instance of Crawler.
16 17 18 19 |
# File 'lib/aemet/crawler.rb', line 16 def initialize(search) @search = CGI.escape(search.parameterize(" ")) search_city end |
Instance Attribute Details
#aemet_id ⇒ Object
Returns the value of attribute aemet_id.
14 15 16 |
# File 'lib/aemet/crawler.rb', line 14 def aemet_id @aemet_id end |
#city ⇒ Object
Returns the value of attribute city.
14 15 16 |
# File 'lib/aemet/crawler.rb', line 14 def city @city end |
#search ⇒ Object (readonly)
Returns the value of attribute search.
13 14 15 |
# File 'lib/aemet/crawler.rb', line 13 def search @search end |