yardi 4.11.0 → 4.11.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68fbe6d401e805c229f86a032096d90ebed0a01a4905a1bfb3969f81882ee573
4
- data.tar.gz: 933e0b3d08fc6efdadb5d63baf13da4bc0baddd920cf49768ced911105085dc5
3
+ metadata.gz: 7c54ba164c5df3e2ace0bdb804313f7b8100ab0675928f3eadb08dbb0a50e3e6
4
+ data.tar.gz: 5befa1272f21d9421fbb5577b5b8ddb2e16abc1efebf1544fd0b98571d64f2c9
5
5
  SHA512:
6
- metadata.gz: 2c31996f6eb55e04979218a35347ce08fd1b676fa12013cc8c6478b306fe86f8fc8031eec764577d51ebc98776bbfc415a068772ef5998dbdae2f7202886f75e
7
- data.tar.gz: 7db5eb29a4889fd1e1073ed9a20ef45b16499a3d1de3651234234da5743920627a15b77f687183e959b3e6c143fe012b73dd1ebf2e591a0653f88c4b49ccb5f6
6
+ metadata.gz: d4f0adbb5d7124bb833452e49e04614e8712a5c9ed05df71df9029b0d0a07de01bfe0590ccb40cb15afa7dbb67f161eab6d1edb8e94352f65ef340a9ee285fea
7
+ data.tar.gz: 92850acb713fa22240fefb796180a57312fa8da518525ae9bc472f83792401e4fdb2ee477491063ad770c122ee773e5ad9927f4248d66d75877a5b31108002a3
@@ -40,7 +40,8 @@ module Yardi
40
40
  phones: Utils::PhoneParser.parse(customer['Phone']),
41
41
  events: build_events(events),
42
42
  prospect_id: remote_id(customer, 'ProspectID'),
43
- tenant_id: remote_id(customer, 'TenantID')
43
+ tenant_id: remote_id(customer, 'TenantID'),
44
+ remote_property_id: remote_id(customer, 'PropertyID')
44
45
  )
45
46
  end
46
47
 
@@ -27,6 +27,9 @@ module Yardi
27
27
  # The tenant id from Yardi's database e.g. "t000456"
28
28
  attr_reader :tenant_id
29
29
 
30
+ # The property id from Yardi's database e.g. "052"
31
+ attr_reader :remote_property_id
32
+
30
33
  def initialize(
31
34
  first_name:,
32
35
  last_name:,
@@ -34,7 +37,8 @@ module Yardi
34
37
  phones:,
35
38
  events:,
36
39
  prospect_id:,
37
- tenant_id:
40
+ tenant_id:,
41
+ remote_property_id:
38
42
  )
39
43
  @first_name = first_name
40
44
  @last_name = last_name
@@ -43,6 +47,7 @@ module Yardi
43
47
  @events = events
44
48
  @prospect_id = prospect_id
45
49
  @tenant_id = tenant_id
50
+ @remote_property_id = remote_property_id
46
51
  end
47
52
  end
48
53
  end
@@ -1,6 +1,7 @@
1
1
  require 'yardi/request_section/authentication'
2
2
  require 'yardi/utils/request_fetcher'
3
3
  require 'yardi/utils/request_generator'
4
+ require 'yardi/utils/test_data_fetcher'
4
5
 
5
6
  module Yardi
6
7
  module Request
@@ -1,11 +1,11 @@
1
1
  require 'google/cloud/storage'
2
2
 
3
+ require 'yardi/utils'
4
+
3
5
  module Yardi
4
6
  module Utils
5
7
  class GoogleCloudStorage
6
- GCS_BUCKET = Yardi.config.gcs_bucket
7
-
8
- def self.read_file(file_path:, bucket: GCS_BUCKET)
8
+ def self.read_file(file_path:, bucket: Yardi.config.gcs_bucket)
9
9
  bucket = client.bucket(bucket)
10
10
  file = bucket.file(file_path)
11
11
  if file
@@ -1,8 +1,11 @@
1
+ require 'yardi/utils'
2
+ require 'yardi/utils/google_cloud_storage'
3
+
1
4
  module Yardi
2
5
  module Utils
3
6
  class TestDataFetcher
4
- RESIDENTS_PATH = 'test-data/residents/'
5
- GUESTCARD_ACTIVITY_PATH = 'test-data/yardi_prospects/'
7
+ RESIDENTS_PATH = 'test_data/residents/'
8
+ GUESTCARD_ACTIVITY_PATH = 'test_data/yardi_prospects/'
6
9
  def self.residents(property_id)
7
10
  GoogleCloudStorage.read_file(file_path: RESIDENTS_PATH + "#{property_id}.xml")
8
11
  end
data/lib/yardi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen-string-literal: true
2
2
 
3
3
  module Yardi
4
- VERSION = '4.11.0'
4
+ VERSION = '4.11.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yardi
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.11.0
4
+ version: 4.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heidi Galbraith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-11 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -305,7 +305,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  - !ruby/object:Gem::Version
306
306
  version: '0'
307
307
  requirements: []
308
- rubygems_version: 3.0.1
308
+ rubyforge_project:
309
+ rubygems_version: 2.7.6.2
309
310
  signing_key:
310
311
  specification_version: 4
311
312
  summary: A ruby client for v4 of Yardi's API