Skip to content

Commit

Permalink
Merge pull request dlt#5 from makaroni4/master
Browse files Browse the repository at this point in the history
FIX typos and comment style
  • Loading branch information
dlt committed Oct 18, 2012
2 parents 24d8874 + a6194b0 commit b7b170d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ Weatherman is very easy to use. Just search for a city woeid in the Yahoo! Weath
url: http://weather.yahoo.com/search

client = Weatherman::Client.new
reponse = client.lookup_by_woeid 455821
response = client.lookup_by_woeid 455821

respose.location['city'] => "Belo Horizonte"
response.location['country'] => "Brazil"
response.condition['date'] => #<Date: -1/2,0,2299161>
response.location['city'] # => "Belo Horizonte"
response.location['country'] # => "Brazil"
response.condition['date'] # => #<Date: -1/2,0,2299161>


ptbr_client = Weatherman::Client.new :lang => 'pt-br'
reponse = ptbr_client.lookup_by_woeid 455821
ptbr_client = Weatherman::Client.new :lang # => 'pt-br'
response = ptbr_client.lookup_by_woeid 455821

response.condition['text'] => "Parcialmente Nublado"
response.condition['country'] => "Brasil"
response.condition['text'] # => "Parcialmente Nublado"
response.condition['country'] # => "Brasil"

== Contributors

Expand Down
16 changes: 8 additions & 8 deletions doc/files/README_rdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ <h2>Example</h2>
</p>
<pre>
client = Weatherman::Client.new
reponse = client.lookup_by_woeid 455821
response = client.lookup_by_woeid 455821

respose.location['city'] =&gt; &quot;Belo Horizonte&quot;
response.location['country'] =&gt; &quot;Brazil&quot;
response.condition['date'] =&gt; #&lt;Date: -1/2,0,2299161&gt;
response.location['city'] # =&gt; &quot;Belo Horizonte&quot;
response.location['country'] # =&gt; &quot;Brazil&quot;
response.condition['date'] # =&gt; #&lt;Date: -1/2,0,2299161&gt;

ptbr_client = Weatherman::Client.new :lang =&gt; 'pt-br'
reponse = ptbr_client.lookup_by_woeid 455821
ptbr_client = Weatherman::Client.new :lang # =&gt; 'pt-br'
response = ptbr_client.lookup_by_woeid 455821

response.condition['text'] =&gt; &quot;Parcialmente Nublado&quot;
response.condition['country'] =&gt; &quot;Brasil&quot;
response.condition['text'] # =&gt; &quot;Parcialmente Nublado&quot;
response.condition['country'] # =&gt; &quot;Brasil&quot;
</pre>
<h1>License</h1>
<p>
Expand Down

0 comments on commit b7b170d

Please sign in to comment.