Sha256: 6168181b6f4b00cd3f0ee8950458bb8b05c5f9935340de6e7aeb231297d843b6
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true require 'housecanary/api/helpers' require 'housecanary/api/sales_history' module Housecanary module API class Repository include Housecanary::API::Helpers include Housecanary::AutoInject['connection', 'response_parser'] SALES_HISTORY_PATH = 'property/sales_history' def sales_history(params = {}) if (response = perform_response(:get, SALES_HISTORY_PATH, params)) SalesHistory.new(response&.first&.fetch(:'property/sales_history', nil)) end end private def perform_response(method, path, params = {}) _perform_response(response_parser, connection, method, path, params) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
housecanary-ruby-0.2.0 | lib/housecanary/api/repository.rb |