Class: Gillbus::GetTimeTable::Request

Inherits:
BaseRequest show all
Defined in:
lib/gillbus/get_time_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseRequest

#initialize, #method

Constructor Details

This class inherits a constructor from Gillbus::BaseRequest

Instance Attribute Details

#end_city_idObject

Returns the value of attribute end_city_id.



10
11
12
# File 'lib/gillbus/get_time_table.rb', line 10

def end_city_id
  @end_city_id
end

#end_date_searchObject

Returns the value of attribute end_date_search.



12
13
14
# File 'lib/gillbus/get_time_table.rb', line 12

def end_date_search
  @end_date_search
end

#localeObject

Returns the value of attribute locale.



8
9
10
# File 'lib/gillbus/get_time_table.rb', line 8

def locale
  @locale
end

#start_city_idObject

Returns the value of attribute start_city_id.



9
10
11
# File 'lib/gillbus/get_time_table.rb', line 9

def start_city_id
  @start_city_id
end

#start_date_searchObject

Returns the value of attribute start_date_search.



11
12
13
# File 'lib/gillbus/get_time_table.rb', line 11

def start_date_search
  @start_date_search
end

Instance Method Details

#paramsObject



14
15
16
17
18
19
20
21
22
# File 'lib/gillbus/get_time_table.rb', line 14

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

#pathObject



6
# File 'lib/gillbus/get_time_table.rb', line 6

def path; '/online2/getTimeTable' end