cre_property_matcher 0.1.2 → 0.1.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.
@@ -1,3 +1,3 @@
1
1
  module CrePropertyMatcher
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -77,6 +77,7 @@ module CrePropertyMatcher
77
77
  scales = {}
78
78
  features.each do |feature|
79
79
  array = filter_by_feature(feature).compact
80
+
80
81
  scales[feature] = {min: array.min, max: array.max, range: array.max - array.min}
81
82
  end
82
83
  scales
@@ -4,9 +4,14 @@ require File.expand_path("../../lib/cre_property_matcher.rb", __FILE__)
4
4
  class TestCrePropertyMatcher < Minitest::Test
5
5
  def setup
6
6
  @pm = CrePropertyMatcher::PropertyMatcher.new(noi: "400,000", ncf: "387,000", ltv: "75%", general_property_type: "Retail", appraised_value: "5,000,000", occupancy: "94%", uw_revenue: "500,000", uw_expenses: "145,000", state: "CT")
7
+
7
8
  end
8
9
 
9
10
  def test_reference_property_instantiated
10
11
  assert_equal false, @pm.reference.nil?
11
12
  end
13
+
14
+ def test_training_data_loaded
15
+ assert_equal 2464, @pm.comps.count
16
+ end
12
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cre_property_matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Arner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,6 +58,7 @@ files:
58
58
  - lib/cre_property_matcher/property_data_calculator.rb
59
59
  - lib/cre_property_matcher/property_data_loader.rb
60
60
  - lib/cre_property_matcher/resources/state_hash.rb
61
+ - lib/cre_property_matcher/training_data/large_property_data.csv
61
62
  - lib/cre_property_matcher/training_data/property_data.csv
62
63
  - lib/cre_property_matcher/version.rb
63
64
  - test/cre_property_matcher/property_data_calculator_test.rb