Sha256: a54e2f78737e4d4dbdfe9fa215ee28332dcf08c8031d79e434ca515fabecfded

Contents?: true

Size: 696 Bytes

Versions: 8

Compression:

Stored size: 696 Bytes

Contents

class RealSavvy::Adapter::Property < RealSavvy::Adapter::Base
  path_prefix_is 'properties'

  include RealSavvy::Concern::ComplexShowForAdapter

  def search(filter: {}, market_id: nil, page_size: nil, page_number: nil, page: {})
    page[:size] ||= page_size
    page[:number] ||= page_number
    post("./api/v3/#{path_prefix}/search", {filter: filter, market_id: market_id, page: page})
  end

  def cluster(filter: {}, market_id: nil, page_size: nil, page_number: nil, page: {}, 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, precision: precision})
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
real_savvy-0.0.10 lib/real_savvy/adapter/property.rb
real_savvy-0.0.9 lib/real_savvy/adapter/property.rb
real_savvy-0.0.8 lib/real_savvy/adapter/property.rb
real_savvy-0.0.7 lib/real_savvy/adapter/property.rb
real_savvy-0.0.6 lib/real_savvy/adapter/property.rb
real_savvy-0.0.5 lib/real_savvy/adapter/property.rb
real_savvy-0.0.4 lib/real_savvy/adapter/property.rb
real_savvy-0.0.3 lib/real_savvy/adapter/property.rb