class ArseniysWeatherApp::MyWeatherForecast
Public Class Methods
new()
click to toggle source
# File lib/ArseniysWeatherApp.rb, line 109 def initialize location = GeoInfo.location_by_ip @location_weather = LocationWeatherForecast.new(lat: location[:lat], lon: location[:lon]) end
Public Instance Methods
method_missing(method_name)
click to toggle source
# File lib/ArseniysWeatherApp.rb, line 114 def method_missing(method_name) raise NoMethodError unless @location_weather.methods.include?(method_name) @location_weather.method(method_name).call end
respond_to_missing?(method_name, include_private = false)
click to toggle source
# File lib/ArseniysWeatherApp.rb, line 120 def respond_to_missing?(method_name, include_private = false) @location_weather.methods.include?(method_name) end