File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
module OpenWeather
3
3
module ClassMethods
4
4
# City format : Eg, Cochin,IN
5
- # Useage : OpenWeather::Current.city('Cochin,In')
5
+ # Usage : OpenWeather::Current.city('Cochin,In')
6
6
def city ( city , options = { } )
7
- new ( options . merge ( city : city ) ) . retrive
7
+ new ( options . merge ( city : city ) ) . retrieve
8
8
end
9
9
10
10
# City Id, an integer value. Eg, 2172797
11
- # Useage : OpenWeather::Current.city_id(2172797)
11
+ # Usage : OpenWeather::Current.city_id(2172797)
12
12
def city_id ( id , options = { } )
13
- new ( options . merge ( id : id ) ) . retrive
13
+ new ( options . merge ( id : id ) ) . retrieve
14
14
end
15
15
16
16
# City Geographics Cordingates : Eg, lat 35 lon 139
17
17
def geocode ( lat , lon , options = { } )
18
- new ( options . merge ( lat : lat , lon : lon ) ) . retrive
18
+ new ( options . merge ( lat : lat , lon : lon ) ) . retrieve
19
19
end
20
20
end
21
21
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ def initialize(url, options)
12
12
@options = extract_options! ( options )
13
13
end
14
14
15
- def retrive
15
+ def retrieve
16
16
response = send_request unless @options . empty?
17
17
parse_response ( response )
18
18
end
You can’t perform that action at this time.
0 commit comments