Sha256: 938df3de54acfda89d2a93a526b9b8c24bfcab6284f199549de5e06872eaf710
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
class Gillbus module SearchTripNearbyCities Gillbus.register self, :search_nearby_cities_trips class Request < BaseRequest def path; '/online2/searchTripNearbyCities' end # startCityId # ИД пункта отправления attr_accessor :start_city_id # endCityId # ИД пункта прибытия attr_accessor :end_city_id # startDateSearch # Дата отправления, на которую будет произведен поиск рейсов. attr_accessor :start_date_search # ticketCount # Количество оформляемых билетов. От 1 до k. attr_accessor :ticket_count def params compact( startCityId: start_city_id, endCityId: end_city_id, startDateSearch: date(start_date_search), ticketCount: ticket_count, ) end end class Response < BaseResponse field :completed, :bool field :trips, [NearbyCitiesTrip], key: 'TRIP', root: 'NEARBY_CITIES' end end end
Version data entries
9 entries across 9 versions & 1 rubygems