Class: Aemet::Crawler

Inherits:
Object
  • Object
show all
Defined in:
lib/aemet/crawler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

Returns the value of attribute aemet_id.



14
15
16
# File 'lib/aemet/crawler.rb', line 14

def aemet_id
  @aemet_id
end

#cityObject

Returns the value of attribute city.



14
15
16
# File 'lib/aemet/crawler.rb', line 14

def city
  @city
end

#searchObject (readonly)

Returns the value of attribute search.



13
14
15
# File 'lib/aemet/crawler.rb', line 13

def search
  @search
end