Class: Gillbus::GetTimeTable::Request
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Gillbus::GetTimeTable::Request
- Defined in:
- lib/gillbus/get_time_table.rb
Instance Attribute Summary collapse
-
#end_city_id ⇒ Object
Returns the value of attribute end_city_id.
-
#end_date_search ⇒ Object
Returns the value of attribute end_date_search.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#start_city_id ⇒ Object
Returns the value of attribute start_city_id.
-
#start_date_search ⇒ Object
Returns the value of attribute start_date_search.
Instance Method Summary collapse
Methods inherited from BaseRequest
Constructor Details
This class inherits a constructor from Gillbus::BaseRequest
Instance Attribute Details
#end_city_id ⇒ Object
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_search ⇒ Object
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 |
#locale ⇒ Object
Returns the value of attribute locale.
8 9 10 |
# File 'lib/gillbus/get_time_table.rb', line 8 def locale @locale end |
#start_city_id ⇒ Object
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_search ⇒ Object
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
#params ⇒ Object
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 |
#path ⇒ Object
6 |
# File 'lib/gillbus/get_time_table.rb', line 6 def path; '/online2/getTimeTable' end |