realogy 0.4.6 → 0.4.7

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: de8efa6e55eda21513bf375e8b2b74eb1aad089cbca5e4def6af59c5dd494c42
4
- data.tar.gz: 97b20092c46b66f9a0a00caf118205607c014fa70107ef96948138e317902f9f
3
+ metadata.gz: 53422fa5ba3f3f9c7712c76816cf834d33bb964e9b2278c256f6b4e5d844c8fa
4
+ data.tar.gz: e308a07e12f69138835116b247261c50a568e1f67ee97b55e4ec9e62d405669e
5
5
  SHA512:
6
- metadata.gz: 0602f161da1dd1eb60e3d6d98c05aa11365b4a77033e33dfd9a05b1641b8eb402cd99a9a95ac66e3583be1a2398d920506321e4b09915eb8b8f4268fb08d0c7c
7
- data.tar.gz: 11e529d5b6fc3dc69b7b0e7ae27888d1495d888513a97f0cc6fcc74f94756b673e5a7f08676b8e8674483629e1cd63cd18a7a51981d05ec58006766ea43e6c43
6
+ metadata.gz: 7e95bb65b54c6396267624cd0acf7df5805d14e5f49e0c4f444e0c5744631bff1408144e9b099fc606383ddbf161b1e416e6cd10b808d01b94f1b663d48ec1f3
7
+ data.tar.gz: 8acb3fcea1b000758d473435c0f0bba7c161ab76006396c2b93a17d4dce9bea04efa8a8e89f547b1740f11195da45d9f4ab07b0074b6f7509a491e26bc5f34b2
@@ -11,13 +11,12 @@ class Realogy::Entity < ApplicationRecord
11
11
 
12
12
  def self.triage hash
13
13
  @object = self.find_or_initialize_by(entity_id: [hash["entityId"], hash["id"]].compact.first)
14
- @object.last_update_on = hash["lastUpdateOn"].to_s.to_time
14
+ @object.last_update_on = hash["lastUpdateOn"].to_s.to_datetime
15
15
  @object.populate if @object.needs_updating?
16
16
  end
17
17
 
18
18
  def populate
19
19
  call = ["get_", self.class.to_s.downcase.split("::").last, "_by_id"].join.to_sym
20
- puts call.inspect
21
20
  result = Realogy::DataSync.client.__send__(call, self.entity_id)
22
21
  self.data = result unless result.blank?
23
22
  self.save if self.changed?
@@ -1,3 +1,3 @@
1
1
  module Realogy
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realogy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund