Class: Meteoservice::Meteo

Inherits:
Object
  • Object
show all
Defined in:
lib/meteoservice/meteo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tags) ⇒ Meteo

Returns a new instance of Meteo.



8
9
10
11
12
13
14
15
16
# File 'lib/meteoservice/meteo.rb', line 8

def initialize(tags)
  @data = tags[:data]
  @phenomena = tags[:phenomena]
  @pressure = tags[:pressure]
  @temperature = tags[:temperature]
  @wind = tags[:wind]
  @relwet = tags[:relwet]
  @heat = tags[:heat]
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def data
  @data
end

#heatObject (readonly)

Returns the value of attribute heat.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def heat
  @heat
end

#phenomenaObject (readonly)

Returns the value of attribute phenomena.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def phenomena
  @phenomena
end

#pressureObject (readonly)

Returns the value of attribute pressure.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def pressure
  @pressure
end

#relwetObject (readonly)

Returns the value of attribute relwet.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def relwet
  @relwet
end

#temperatureObject (readonly)

Returns the value of attribute temperature.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def temperature
  @temperature
end

#windObject (readonly)

Returns the value of attribute wind.



5
6
7
# File 'lib/meteoservice/meteo.rb', line 5

def wind
  @wind
end