Sha256: 3f4f9800cf051615116d017218977335057650a8b051c4c970e92afe1dc5aad7

Contents?: true

Size: 715 Bytes

Versions: 31

Compression:

Stored size: 715 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

31 entries across 31 versions & 1 rubygems

Version Path
gillbus-0.16.7 lib/gillbus/get_time_table.rb
gillbus-0.16.6 lib/gillbus/get_time_table.rb
gillbus-0.16.5 lib/gillbus/get_time_table.rb
gillbus-0.16.4 lib/gillbus/get_time_table.rb
gillbus-0.16.3 lib/gillbus/get_time_table.rb
gillbus-0.16.2 lib/gillbus/get_time_table.rb
gillbus-0.16.1 lib/gillbus/get_time_table.rb
gillbus-0.15.7 lib/gillbus/get_time_table.rb
gillbus-0.15.6 lib/gillbus/get_time_table.rb
gillbus-0.15.5 lib/gillbus/get_time_table.rb
gillbus-0.15.4 lib/gillbus/get_time_table.rb
gillbus-0.15.3 lib/gillbus/get_time_table.rb
gillbus-0.15.2 lib/gillbus/get_time_table.rb
gillbus-0.15.1 lib/gillbus/get_time_table.rb
gillbus-0.15.0 lib/gillbus/get_time_table.rb
gillbus-0.14.12 lib/gillbus/get_time_table.rb
gillbus-0.14.11 lib/gillbus/get_time_table.rb
gillbus-0.14.10 lib/gillbus/get_time_table.rb
gillbus-0.14.9 lib/gillbus/get_time_table.rb
gillbus-0.14.8 lib/gillbus/get_time_table.rb