Class: Meteoservice::Meteo
- Inherits:
-
Object
- Object
- Meteoservice::Meteo
- Defined in:
- lib/meteoservice/meteo.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#heat ⇒ Object
readonly
Returns the value of attribute heat.
-
#phenomena ⇒ Object
readonly
Returns the value of attribute phenomena.
-
#pressure ⇒ Object
readonly
Returns the value of attribute pressure.
-
#relwet ⇒ Object
readonly
Returns the value of attribute relwet.
-
#temperature ⇒ Object
readonly
Returns the value of attribute temperature.
-
#wind ⇒ Object
readonly
Returns the value of attribute wind.
Instance Method Summary collapse
-
#initialize(tags) ⇒ Meteo
constructor
A new instance of Meteo.
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() @data = [:data] @phenomena = [:phenomena] @pressure = [:pressure] @temperature = [:temperature] @wind = [:wind] @relwet = [:relwet] @heat = [:heat] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def data @data end |
#heat ⇒ Object (readonly)
Returns the value of attribute heat.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def heat @heat end |
#phenomena ⇒ Object (readonly)
Returns the value of attribute phenomena.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def phenomena @phenomena end |
#pressure ⇒ Object (readonly)
Returns the value of attribute pressure.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def pressure @pressure end |
#relwet ⇒ Object (readonly)
Returns the value of attribute relwet.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def relwet @relwet end |
#temperature ⇒ Object (readonly)
Returns the value of attribute temperature.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def temperature @temperature end |
#wind ⇒ Object (readonly)
Returns the value of attribute wind.
5 6 7 |
# File 'lib/meteoservice/meteo.rb', line 5 def wind @wind end |