film_locations_gem 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/film_locations_gem.rb +16 -8
- data/lib/film_locations_gem/version.rb +1 -1
- 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: 552d908784c6b6c0ccec017f953ebe1f21e39cba
|
4
|
+
data.tar.gz: 3edac0d8bfe31f1188442361bb899b2e78b1eb37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce1b4328a493832a9e2aef4b4f9cb49e93514584461dd29f4f55f95304148844533bfaf5dc74cee6c4372c3b7e914bc5f2adc5da70341203eda65220fe79f5fb
|
7
|
+
data.tar.gz: 7286d583b6dcc86f0838e1f9e86b1b73f723a9257e2d47c3f2d34f68dd146dfa400cda6de88c88edfc1cb1894c087696d8eb12441efa8f8f0acd1be62a880c11
|
data/lib/film_locations_gem.rb
CHANGED
@@ -3,19 +3,27 @@ require "unirest"
|
|
3
3
|
|
4
4
|
module FilmLocationsGem
|
5
5
|
class FilmInSf
|
6
|
-
attr_reader :
|
6
|
+
attr_reader :actor_1, :actor_2, :actor_3, :director, :locations, :production_company, :release_year, :title, :writer
|
7
7
|
|
8
|
-
def initialize(
|
9
|
-
@
|
8
|
+
def initialize(hash)
|
9
|
+
@actor_1 = hash['actor_1']
|
10
|
+
@actor_2 = hash['actor_2']
|
11
|
+
@actor_3 = hash['actor_3']
|
12
|
+
@director = hash['director']
|
13
|
+
@locations = hash['locations']
|
14
|
+
@production_company = hash['production_company']
|
15
|
+
@release_year = hash['release_year']
|
16
|
+
@title = hash['title']
|
17
|
+
@writer = hash['writer']
|
10
18
|
end
|
11
19
|
|
12
20
|
def self.all
|
21
|
+
# film_locations = []
|
13
22
|
film_locations_array = Unirest.get("https://data.sfgov.org/resource/wwmu-gmzc.json").body
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
23
|
+
# film_locations_array.each do |film_location|
|
24
|
+
# film_locations << film_location
|
25
|
+
# end
|
26
|
+
# film_locations_array
|
19
27
|
end
|
20
28
|
|
21
29
|
end
|