corelogic-ruby 1.0.0 → 1.0.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: d64a6a6de5da35dbe231663e765e9d58a8de995b
4
- data.tar.gz: 4dbe83c9ffa651b4145cb514d7416ea9d0a85aab
3
+ metadata.gz: 3620ea8a42c144a527a12d258622ff30d1c130f5
4
+ data.tar.gz: 6e3d65eafe8746b5d39a990b1e33656d940f1585
5
5
  SHA512:
6
- metadata.gz: 01c1c781e2658c3b48dcdd0a401c1d49afe27b0e45a6655eeb8697af15f431af79a7f21bb0c5bf56dedbbb55b05e2611854e9e72ee630d9498d1c3aef8b6b006
7
- data.tar.gz: a80a16eb6a23362443960b26ce058bd03f81124695795bee4b2078ee1c65d60e8912aac867a0b1660583ae6ea16ed97a9e31c15f83e4e7e918610c653e986741
6
+ metadata.gz: 7aa0f181882476102b1e160e6c696170dd91fd67641f2895c3f9c702bd00f3744a1de2dbdda7f56f89c56fbb25988a8234fe7c62fde348cdeff70006d27bb75a
7
+ data.tar.gz: e241d1af9585bc4d8308c1a1a530684ff630dc4585bf7f6c735606017bfdd87aec2b672e1101a91829538021f24ceaddb42d9931253952e4cedf4357d60cbe5c
@@ -58,6 +58,7 @@ module Corelogic
58
58
  def property_detail(property)
59
59
  response = perform_response("property/#{property.id}/property-detail")
60
60
 
61
+ property.assign_data!(response[:property])
61
62
  property.ownership = Property::Ownership.new(response[:ownership]) if response[:ownership]
62
63
  property.building = Property::Building.new(response[:building]) if response[:building]
63
64
  property.tax_assessment = Property::TaxAssessment.new(response[:taxAssessment]) if response[:taxAssessment]
@@ -98,5 +98,9 @@ module Corelogic
98
98
  @details ||= Corelogic.properties.property_detail(self)
99
99
  end
100
100
 
101
+ def assign_data!(params = {})
102
+ send(:initialize, params.merge(corelogicPropertyId: id))
103
+ end
104
+
101
105
  end
102
106
  end
@@ -1,3 +1,3 @@
1
1
  module Corelogic
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corelogic-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilia Kriachkov