Class: Housecanary::API::Repository
- Inherits:
-
Object
- Object
- Housecanary::API::Repository
- Includes:
- Helpers
- Defined in:
- lib/housecanary/api/repository.rb
Constant Summary collapse
- SALES_HISTORY_PATH =
'property/sales_history'
Instance Method Summary collapse
Methods included from Helpers
#_perform_response, #perform_get, #perform_post, #perform_request
Instance Method Details
#sales_history(params = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/housecanary/api/repository.rb', line 14 def sales_history(params = {}) if (response = perform_response(:get, SALES_HISTORY_PATH, params)) SalesHistory.new(**response&.first&.fetch(:'property/sales_history', nil)) end end |