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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1530e506c1e5425f20f90565c21693c53f59b10
4
- data.tar.gz: 65c0dac14d413d8098ccc0f57fc319ddc7561e9b
3
+ metadata.gz: 552d908784c6b6c0ccec017f953ebe1f21e39cba
4
+ data.tar.gz: 3edac0d8bfe31f1188442361bb899b2e78b1eb37
5
5
  SHA512:
6
- metadata.gz: a287a456513faca572daed5d24511e11a75032f802d893669957bb60a39c1dacdc351c85cc08a791eaf9351da307b98a5c29904f2a51c5ee723eddcabb2de627
7
- data.tar.gz: 3cae1e3e078df893c170dafa4a4d9aadba3bf51c2d95c6d096c412061b0bd09e789f02e6114be369017e57c01110b6f8568ce95a4a141f812b01e71d3ad47ca9
6
+ metadata.gz: ce1b4328a493832a9e2aef4b4f9cb49e93514584461dd29f4f55f95304148844533bfaf5dc74cee6c4372c3b7e914bc5f2adc5da70341203eda65220fe79f5fb
7
+ data.tar.gz: 7286d583b6dcc86f0838e1f9e86b1b73f723a9257e2d47c3f2d34f68dd146dfa400cda6de88c88edfc1cb1894c087696d8eb12441efa8f8f0acd1be62a880c11
@@ -3,19 +3,27 @@ require "unirest"
3
3
 
4
4
  module FilmLocationsGem
5
5
  class FilmInSf
6
- attr_reader :film_locations
6
+ attr_reader :actor_1, :actor_2, :actor_3, :director, :locations, :production_company, :release_year, :title, :writer
7
7
 
8
- def initialize(film_locations_hash)
9
- @film_locations = film_locations_hash("film_locations")
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
- create_film_locations(film_locations_array)
15
- end
16
-
17
- def create_film_locations
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
@@ -1,3 +1,3 @@
1
1
  module FilmLocationsGem
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: film_locations_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrealiz Afable