Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update readme.

  • Loading branch information...
commit 72160f24dfce5bf8865afb22eda250b28ce4ef1d 1 parent 97327fe
@ejholmes authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
View
15 README.md
@@ -128,6 +128,21 @@ part.best_offer.prices
# => [[1, 14.67, "USD"], [10, 13.69, "USD"], [30, 12.84, "USD"]]
```
+* * *
+
+**.best_price**
+
+```ruby
+part = Octopart::Part.find(39619421)
+# => #<Octopart::Part >
+
+part.best_price
+# => 14.67
+
+part.best_price(100)
+# => 12.84
+```
+
## Contributing
1. Fork it
Please sign in to comment.
Something went wrong with that request. Please try again.