Sha256: aa70659d65cc77b57d2414c21ac4952bc60439437dfc63349b6f169fce5154ff

Contents?: true

Size: 987 Bytes

Versions: 6

Compression:

Stored size: 987 Bytes

Contents

# yahoo_weather
[![Build Status](https://travis-ci.org/manzhikov/yahoo_weather.png?branch=master)](https://travis-ci.org/manzhikov/yahoo_weather)

A Ruby object-oriented interface to the Yahoo! Weather feed.

It supports caching and i18n.

## Installation

    $ gem install yahoo_weather


Include in your Gemfile:

```ruby
gem 'yahoo_weather'
```

## API

http://developer.yahoo.com/weather/

## Example

```ruby
client = YahooWeather::Client.new
response = client.fetch(12797168)
response.units.temperature        # "F"
response.condition.temp           # 60
response.wind.direction           # 110
response.wind.direction('string') # "ESE"
response.condition.code           # 29
response.condition.code('string') # "Partly cloudy (night)"
```

## Locales

Copy locale command:

```ruby
rails g yahoo_weather:copy_locale en
```

## Available Locales

Available locales are:

> en, ru

## License

MIT License. Copyright 2013 Ildar Manzhikov <manzhikov@gmail.com>. http://manzhikov.com

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
yahoo_weather-1.0.6 README.md
yahoo_weather-1.0.5 README.md
yahoo_weather-1.0.4 README.md
yahoo_weather-1.0.3 README.md
yahoo_weather-1.0.2 README.md
yahoo_weather-1.0.1 README.md