class MgTracker::Barometer
`Barometer` gathers barometer-related data
Attributes
city[R]
state[R]
weather[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/mg_tracker/barometer.rb, line 8 def initialize(options = {}) @weather = weather = options[:weather] || Weather.new @city = weather.city = options[:city] || 'San Francisco' @state = weather.state = options[:state] || 'CA' end
Public Instance Methods
inches()
click to toggle source
# File lib/mg_tracker/barometer.rb, line 14 def inches weather.barometer_in end
mb()
click to toggle source
# File lib/mg_tracker/barometer.rb, line 18 def mb weather.barometer_mb end
trend()
click to toggle source
# File lib/mg_tracker/barometer.rb, line 22 def trend weather.barometer_trend end