Class: Rubillow::Models::DeepComps

Inherits:
Base
  • Object
show all
Defined in:
lib/rubillow/models/deep_comps.rb

Overview

List of comps for a given property with deep data.

Instance Attribute Summary collapse

Attributes inherited from Base

#code, #message, #near_limit, #xml

Method Summary

Methods inherited from Base

#success?

Methods included from XmlParsingHelper

#xpath_if_present

Instance Attribute Details

#comparablesHash

Returns comparables list (key => comparable’s score, value => Rubillow::Models::DeepSearchResult).

Examples:

comparables.each do |score, comp|
  puts score
  puts comp.price
end

Returns:



15
16
17
# File 'lib/rubillow/models/deep_comps.rb', line 15

def comparables
  @comparables
end

#principalModels::DeepSearchResult

Returns principal property.

Returns:



6
7
8
# File 'lib/rubillow/models/deep_comps.rb', line 6

def principal
  @principal
end