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.
- checksums.yaml +4 -4
- data/lib/cre_property_matcher/property_data_loader.rb +1 -1
- data/lib/cre_property_matcher/training_data/large_property_data.csv +2465 -0
- data/lib/cre_property_matcher/version.rb +1 -1
- data/lib/cre_property_matcher.rb +1 -0
- data/test/cre_property_matcher_test.rb +5 -0
- metadata +3 -2
data/lib/cre_property_matcher.rb
CHANGED
@@ -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.
|
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-
|
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
|