Sha256: b6b7b05fb0503e9b6539a619218c498cda6b22e0dc470108b3391d6e028f190b

Contents?: true

Size: 798 Bytes

Versions: 46

Compression:

Stored size: 798 Bytes

Contents

class Gillbus
  module GetDatesNew
    Gillbus.register self, :get_dates_new

    class Request < BaseRequest
      def path; '/online2/getDatesNew' end

      attr_accessor :start_city_id
      attr_accessor :end_city_id
      attr_accessor :start_date_search
      attr_accessor :end_date_search
      attr_accessor :oneway_trip_date
      attr_accessor :selected_modes

      def params
        compact(
          startCityId: start_city_id,
          endCityId: end_city_id,
          startDateSearch: date(start_date_search),
          endDateSearch: date(end_date_search),
          onewayTripDate: date(oneway_trip_date),
          selectedModes: modes(selected_modes),
        )
      end
    end

    class Response < BaseResponse
      field :items, [Item], key: 'ITEM'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.23.0 lib/gillbus/get_dates_new.rb
gillbus-0.22.9 lib/gillbus/get_dates_new.rb
gillbus-0.22.8 lib/gillbus/get_dates_new.rb
gillbus-0.22.7 lib/gillbus/get_dates_new.rb
gillbus-0.22.6 lib/gillbus/get_dates_new.rb
gillbus-0.22.5 lib/gillbus/get_dates_new.rb
gillbus-0.22.4 lib/gillbus/get_dates_new.rb
gillbus-0.22.3 lib/gillbus/get_dates_new.rb
gillbus-0.22.2 lib/gillbus/get_dates_new.rb
gillbus-0.22.1 lib/gillbus/get_dates_new.rb
gillbus-0.22.0 lib/gillbus/get_dates_new.rb
gillbus-0.21.0 lib/gillbus/get_dates_new.rb
gillbus-0.20.9 lib/gillbus/get_dates_new.rb
gillbus-0.20.8 lib/gillbus/get_dates_new.rb
gillbus-0.20.7 lib/gillbus/get_dates_new.rb
gillbus-0.20.6 lib/gillbus/get_dates_new.rb
gillbus-0.20.5 lib/gillbus/get_dates_new.rb
gillbus-0.20.4 lib/gillbus/get_dates_new.rb
gillbus-0.20.3 lib/gillbus/get_dates_new.rb
gillbus-0.20.2 lib/gillbus/get_dates_new.rb