random_us_city 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/random_us_city/version.rb +1 -1
- data/lib/random_us_city.rb +11 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3439ffc2a8331342ad60b95b804eb9ece3eaf80
|
|
4
|
+
data.tar.gz: b90cb5670f10d95ed93f9573340da06de554b4b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27b28cf34d9b2079b4a7dd4c2e991147e0141b045fa9ca90924a47cf14d594d4bcf6dea41e859570a139bde86feaf70d013daa71abd105c7c77b164b5ef380d6
|
|
7
|
+
data.tar.gz: c1c69de1a3995de3d772d97d914f6b9c40aa16bf7cb7184795f8606e736ab568b6c1b66903a2229424875d49de456c21970a1c702eb3a98f9fb2e9bf1d806772
|
data/lib/random_us_city.rb
CHANGED
|
@@ -3,15 +3,17 @@ require "csv"
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
=begin rdoc
|
|
6
|
-
This class returns a struct with data for a random city in the US.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
This class returns a struct with data for a random city in the US.
|
|
7
|
+
|
|
8
|
+
For example:
|
|
9
|
+
|
|
10
|
+
#<struct RandomUsCity::City
|
|
11
|
+
zip="67878",
|
|
12
|
+
latitude="37.986428",
|
|
13
|
+
longitude="-101.751732",
|
|
14
|
+
city="Syracuse",
|
|
15
|
+
state="KS",
|
|
16
|
+
county="Hamilton">
|
|
15
17
|
=end
|
|
16
18
|
|
|
17
19
|
class RandomUsCity
|