Sha256: 048d3a1d719bcdd3b80b942fe3d7629a1dade635b6b3c2f0d01a250b91a13886
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
class RealSavvy::Adapter::Property < RealSavvy::Adapter::Base path_prefix_is 'properties' include RealSavvy::Concern::ComplexShowForAdapter def search(market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {}) page[:size] ||= page_size page[:number] ||= page_number post("./api/v3/#{path_prefix}/search", {filter: filter, market_id: market_id, page: page, sort: sort}) end def cluster(market_id: nil, page_size: nil, page_number: nil, page: {}, sort: {}, filter: {}, precision: nil) page[:size] ||= page_size page[:number] ||= page_number post("./api/v3/#{path_prefix}/map/clusters", {filter: filter, market_id: market_id, page: page, sort: sort, precision: precision}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
real_savvy-0.0.12 | lib/real_savvy/adapter/property.rb |