Class: MgTracker::Barometer
- Inherits:
-
Object
- Object
- MgTracker::Barometer
- Defined in:
- lib/mg_tracker/barometer.rb
Overview
‘Barometer` gathers barometer-related data
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#weather ⇒ Object
readonly
Returns the value of attribute weather.
Instance Method Summary collapse
- #inches ⇒ Object
-
#initialize(options = {}) ⇒ Barometer
constructor
A new instance of Barometer.
- #mb ⇒ Object
- #trend ⇒ Object
Constructor Details
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
6 7 8 |
# File 'lib/mg_tracker/barometer.rb', line 6 def city @city end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
6 7 8 |
# File 'lib/mg_tracker/barometer.rb', line 6 def state @state end |
#weather ⇒ Object (readonly)
Returns the value of attribute weather.
6 7 8 |
# File 'lib/mg_tracker/barometer.rb', line 6 def weather @weather end |
Instance Method Details
#inches ⇒ Object
14 15 16 |
# File 'lib/mg_tracker/barometer.rb', line 14 def inches weather. end |
#mb ⇒ Object
18 19 20 |
# File 'lib/mg_tracker/barometer.rb', line 18 def mb weather. end |
#trend ⇒ Object
22 23 24 |
# File 'lib/mg_tracker/barometer.rb', line 22 def trend weather. end |