README.md in weather-report-0.3.1 vs README.md in weather-report-0.3.2
- old
+ new
@@ -1,9 +1,11 @@
# Weather Report
A Ruby library and CLI to get Japanese Weather via Livedoor Weather Web Service(http://weather.livedoor.com/weather_hacks/webservice).
+[](https://travis-ci.org/zakuni/weather-report)
+
## Installation
Add this line to your application's Gemfile:
gem 'weather-report'
@@ -19,9 +21,14 @@
## Usage
```ruby
require 'weather-report'
+# for easy use
+tokyo = WeatherReport.get("東京")
+tokyo.today.telop # => "晴れ"
+
+# or you can write like this
id = WeatherReport::Weather.request_cityid("東京")
weather = WeatherReport::Weather.new(id)
weather.tomorrow.date # => <Date: 2013-05-04 ((2456417j,0s,0n),+0s,2299161j)>
weather.tomorrow.telop # => "雨"
weather.tomorrow.temperature_min # => 12