Class: Gillbus::GetDatesNew::Request
- Inherits:
-
BaseRequest
- Object
- BaseRequest
- Gillbus::GetDatesNew::Request
- Defined in:
- lib/gillbus/get_dates_new.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.
-
#oneway_trip_date ⇒ Object
Returns the value of attribute oneway_trip_date.
-
#selected_modes ⇒ Object
Returns the value of attribute selected_modes.
-
#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.
9 10 11 |
# File 'lib/gillbus/get_dates_new.rb', line 9 def end_city_id @end_city_id end |
#end_date_search ⇒ Object
Returns the value of attribute end_date_search.
11 12 13 |
# File 'lib/gillbus/get_dates_new.rb', line 11 def end_date_search @end_date_search end |
#oneway_trip_date ⇒ Object
Returns the value of attribute oneway_trip_date.
12 13 14 |
# File 'lib/gillbus/get_dates_new.rb', line 12 def oneway_trip_date @oneway_trip_date end |
#selected_modes ⇒ Object
Returns the value of attribute selected_modes.
13 14 15 |
# File 'lib/gillbus/get_dates_new.rb', line 13 def selected_modes @selected_modes end |
#start_city_id ⇒ Object
Returns the value of attribute start_city_id.
8 9 10 |
# File 'lib/gillbus/get_dates_new.rb', line 8 def start_city_id @start_city_id end |
#start_date_search ⇒ Object
Returns the value of attribute start_date_search.
10 11 12 |
# File 'lib/gillbus/get_dates_new.rb', line 10 def start_date_search @start_date_search end |
Instance Method Details
#params ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gillbus/get_dates_new.rb', line 15 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 |
#path ⇒ Object
6 |
# File 'lib/gillbus/get_dates_new.rb', line 6 def path; '/online2/getDatesNew' end |