Sha256: 9bcb6c05ac4067c6b0c02a8a90bc426e90e55061ddc6a5bae975523d282b6b01
Contents?: true
Size: 563 Bytes
Versions: 22
Compression:
Stored size: 563 Bytes
Contents
require 'quick_travel/adapter' module QuickTravel module Products class Base < Adapter def normally_bookable? bookable || exception_type == 'inventory' end def self.find(search_params = {}) find_for_type(@reservation_for_type, search_params) end def self.find_for_type(type, search_params = {}) url = "/reservation_for/#{type}/find_services_for.json" product_maps = post_and_validate(url, search_params) product_maps.map { |product_map| new(product_map) } end end end end
Version data entries
22 entries across 22 versions & 1 rubygems