Class: Gillbus::GetDatesNew::Request

Inherits:
BaseRequest show all
Defined in:
lib/gillbus/get_dates_new.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.



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

def end_city_id
  @end_city_id
end

#end_date_searchObject

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_dateObject

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_modesObject

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_idObject

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_searchObject

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

#paramsObject



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

#pathObject



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

def path; '/online2/getDatesNew' end