Sha256: 19998b472391591d88545f7baa10ee8665a7b1a31218174d28c9bbbe0eb87371

Contents?: true

Size: 711 Bytes

Versions: 46

Compression:

Stored size: 711 Bytes

Contents

class Gillbus
  module GetTimeTable
    Gillbus.register self, :get_time_table

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

      attr_accessor :locale
      attr_accessor :start_city_id
      attr_accessor :end_city_id
      attr_accessor :start_date_search
      attr_accessor :end_date_search

      def params
        compact(
          locale: translated_locale(locale),
          startCityId: start_city_id,
          endCityId: end_city_id,
          startDateSearch: date(start_date_search),
          endDateSearch: date(end_date_search),
        )
      end
    end

    class Response < BaseResponse
      field :trips, [TimetableTrip], key: 'TRIP'
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
gillbus-0.20.1 lib/gillbus/get_time_table.rb
gillbus-0.20.0 lib/gillbus/get_time_table.rb
gillbus-0.19.0 lib/gillbus/get_time_table.rb
gillbus-0.18.14 lib/gillbus/get_time_table.rb
gillbus-0.18.13 lib/gillbus/get_time_table.rb
gillbus-0.18.12 lib/gillbus/get_time_table.rb
gillbus-0.18.11 lib/gillbus/get_time_table.rb
gillbus-0.18.10 lib/gillbus/get_time_table.rb
gillbus-0.18.9 lib/gillbus/get_time_table.rb
gillbus-0.18.8 lib/gillbus/get_time_table.rb
gillbus-0.18.7 lib/gillbus/get_time_table.rb
gillbus-0.18.6 lib/gillbus/get_time_table.rb
gillbus-0.18.5 lib/gillbus/get_time_table.rb
gillbus-0.18.4 lib/gillbus/get_time_table.rb
gillbus-0.18.3 lib/gillbus/get_time_table.rb
gillbus-0.18.2 lib/gillbus/get_time_table.rb
gillbus-0.18.1 lib/gillbus/get_time_table.rb
gillbus-0.17.6 lib/gillbus/get_time_table.rb
gillbus-0.17.5 lib/gillbus/get_time_table.rb
gillbus-0.17.4 lib/gillbus/get_time_table.rb