crunchbase_v2 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/crunchbase/office.rb +18 -14
- data/lib/crunchbase/version.rb +1 -1
- metadata +3 -3
data/lib/crunchbase/office.rb
CHANGED
@@ -6,22 +6,26 @@ module Crunchbase
|
|
6
6
|
class Office < CBEntity
|
7
7
|
|
8
8
|
RESOURCE_LIST = 'offices'
|
9
|
-
|
10
|
-
|
11
|
-
:
|
9
|
+
attr_reader :type_name, :name, :street_1, :street_2, :postal_code, :city, :city_path,
|
10
|
+
:region, :region_path, :country, :country_path, :latitude, :longitude,
|
11
|
+
:created_at, :updated_at
|
12
12
|
|
13
13
|
def initialize(json)
|
14
|
-
@type_name
|
15
|
-
@name
|
16
|
-
@street_1
|
17
|
-
@street_2
|
18
|
-
@
|
19
|
-
@
|
20
|
-
@city_path
|
21
|
-
@region
|
22
|
-
@
|
23
|
-
@
|
24
|
-
@
|
14
|
+
@type_name = json['type']
|
15
|
+
@name = json['name']
|
16
|
+
@street_1 = json['street_1']
|
17
|
+
@street_2 = json['street_2']
|
18
|
+
@postal_code = json['postal_code']
|
19
|
+
@city = json['city']
|
20
|
+
@city_path = json['city_path']
|
21
|
+
@region = json['region']
|
22
|
+
@region_path = json['region_path']
|
23
|
+
@country = json['country']
|
24
|
+
@country_path = json['country_path']
|
25
|
+
@latitude = json['latitude']
|
26
|
+
@longitude = json['longitude']
|
27
|
+
@created_at = Time.at(json['created_at']).utc
|
28
|
+
@updated_at = Time.at(json['updated_at']).utc
|
25
29
|
end
|
26
30
|
|
27
31
|
end
|
data/lib/crunchbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crunchbase_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -207,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '0'
|
208
208
|
segments:
|
209
209
|
- 0
|
210
|
-
hash:
|
210
|
+
hash: 11833851429512340
|
211
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
212
|
none: false
|
213
213
|
requirements:
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
segments:
|
218
218
|
- 0
|
219
|
-
hash:
|
219
|
+
hash: 11833851429512340
|
220
220
|
requirements: []
|
221
221
|
rubyforge_project:
|
222
222
|
rubygems_version: 1.8.23.2
|