book-value 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/book-value/client.rb +1 -1
- data/lib/book-value/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a11cb94c2fb19399434dc294c4e173f13b606fda34cab984577f429a29e7806
|
4
|
+
data.tar.gz: df5f6035353da19dd775e8b77f45eef7a4a81baa27bc0b3585fd2564254d04f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f57c9cdf267e562991df15e675bdff55475859e111f7cb0f4a65df3546fef5e0c2d3157c1dbf997ef2c9d25eddfb4f2ad1467004415c5e78bc8bc4bc942ae35e
|
7
|
+
data.tar.gz: 8fbbe6a05a7d0099e708a1c43f4d21f97c146bcef883e636ed082873e01ca1609b5018c2d27c413d3d4fa75f711ab274d5ef1efd11954ae6d9b1331b3969bd5e
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ Or install it yourself as:
|
|
31
31
|
client = BookValue::Client.new
|
32
32
|
|
33
33
|
# Some example calls
|
34
|
-
client.
|
34
|
+
client.car_makes
|
35
35
|
client.car_models(make)
|
36
36
|
client.car_features(make, model)
|
37
37
|
client.get_book_value(make, model, features, mileage, year, condition_score)
|
data/lib/book-value/client.rb
CHANGED
@@ -59,7 +59,7 @@ module BookValue
|
|
59
59
|
|
60
60
|
# Features are just the list of features
|
61
61
|
# condition_score is between 1-10, 10 is perfect, 1 is bad
|
62
|
-
def get_book_value(make, model, features, mileage, year, condition_score)
|
62
|
+
def get_book_value(make, model, features, mileage, year, condition_score = 10)
|
63
63
|
feature_params = ""
|
64
64
|
|
65
65
|
features.each do |feature_id|
|
data/lib/book-value/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: book-value
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- trex22
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|