Class: Duststorm::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/duststorm/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lat, lng, options = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/duststorm/base.rb', line 5

def initialize(lat, lng, options={})
  @lat = lat
  @lng = lng
  @options = options
end

Instance Attribute Details

#latObject (readonly)

Returns the value of attribute lat.



3
4
5
# File 'lib/duststorm/base.rb', line 3

def lat
  @lat
end

#lngObject (readonly)

Returns the value of attribute lng.



3
4
5
# File 'lib/duststorm/base.rb', line 3

def lng
  @lng
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/duststorm/base.rb', line 3

def options
  @options
end

Instance Method Details

#forecastObject



11
12
13
# File 'lib/duststorm/base.rb', line 11

def forecast
  @forecast ||= Forecast.new(weather_data)
end