class MgTracker::Weather
`Weather` makes various data about the weather available
Attributes
city[RW]
service[R]
state[RW]
Public Class Methods
new(service = WeatherService.new, options = {})
click to toggle source
# File lib/mg_tracker/weather.rb, line 9 def initialize(service = WeatherService.new, options = {}) @service = service @city = service.city = options[:city] || 'San Francisco' @state = service.state = options[:state] || 'CA' end