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.
@@ -6,22 +6,26 @@ module Crunchbase
6
6
  class Office < CBEntity
7
7
 
8
8
  RESOURCE_LIST = 'offices'
9
-
10
- attr_reader :type_name, :name, :street_1, :street_2, :city, :city_uuid, :city_path,
11
- :region, :country_code, :created_at, :updated_at
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 = json['type']
15
- @name = json['name']
16
- @street_1 = json['street_1']
17
- @street_2 = json['street_2']
18
- @city = json['city']
19
- @city_uuid = json['city_uuid']
20
- @city_path = json['city_path']
21
- @region = json['region']
22
- @country_code = json['country_code']
23
- @created_at = Time.at(json['created_at']).utc
24
- @updated_at = Time.at(json['updated_at']).utc
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Crunchbase
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
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.0
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: -3668500788587651473
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: -3668500788587651473
219
+ hash: 11833851429512340
220
220
  requirements: []
221
221
  rubyforge_project:
222
222
  rubygems_version: 1.8.23.2