Sha256: 17af2f96d63680213e6875d29f521079a61282cd2b164839838fe26ac33181ef

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

# -*- coding: utf-8 -*-
require 'date'
require 'json'
require 'open-uri'
require 'nokogiri'
require 'weather-report/weather'
require 'weather-report/day'
require 'weather-report/version'

module WeatherReport
  class WeatherReportError < StandardError; end

  # @return [Weather] get weather of the city
  def self.get(city_name)
    Weather.new(Weather.request_cityid(city_name))
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
weather-report-0.3.6 lib/weather-report.rb
weather-report-0.3.5 lib/weather-report.rb
weather-report-0.3.4 lib/weather-report.rb
weather-report-0.3.3 lib/weather-report.rb
weather-report-0.3.2 lib/weather-report.rb
weather-report-0.3.1 lib/weather-report.rb
weather-report-0.3.0 lib/weather-report.rb
weather-report-0.2.1 lib/weather-report.rb