Skip to content

Commit d65938e

Browse files
committed
Merge pull request #24 from JesseEmond/typos
Fix 'retrieve' and 'usage' typos in API/Base
2 parents cf1cc32 + 9eeb446 commit d65938e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/open_weather/api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
module OpenWeather
33
module ClassMethods
44
# City format : Eg, Cochin,IN
5-
# Useage: OpenWeather::Current.city('Cochin,In')
5+
# Usage: OpenWeather::Current.city('Cochin,In')
66
def city(city, options = {})
7-
new(options.merge(city: city)).retrive
7+
new(options.merge(city: city)).retrieve
88
end
99

1010
# City Id, an integer value. Eg, 2172797
11-
# Useage: OpenWeather::Current.city_id(2172797)
11+
# Usage: OpenWeather::Current.city_id(2172797)
1212
def city_id(id, options = {})
13-
new(options.merge(id: id)).retrive
13+
new(options.merge(id: id)).retrieve
1414
end
1515

1616
# City Geographics Cordingates : Eg, lat 35 lon 139
1717
def geocode(lat, lon, options = {})
18-
new(options.merge(lat: lat, lon: lon)).retrive
18+
new(options.merge(lat: lat, lon: lon)).retrieve
1919
end
2020
end
2121

lib/open_weather/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(url, options)
1212
@options = extract_options!(options)
1313
end
1414

15-
def retrive
15+
def retrieve
1616
response = send_request unless @options.empty?
1717
parse_response(response)
1818
end

0 commit comments

Comments
 (0)