Class: Gillbus::BaseRequest
- Inherits:
-
Object
- Object
- Gillbus::BaseRequest
show all
- Defined in:
- lib/gillbus/base_request.rb
Direct Known Subclasses
Gillbus::BuyBooking::Request, Gillbus::BuyTickets::Request, CancelOrder::Request, FindOrder::Request, GetAllCities::Request, GetBusImage::Request, GetCarriers::Request, GetCities::Request, GetCountries::Request, GetDatesNew::Request, GetOrderStatus::Request, GetOrderTicket::Request, GetRequiredFields::Request, GetTimeTable::Request, GetTripSeats::Request, GetTripSegments::Request, GetTrips::Request, LockSeats::Request, Logout::Request, PassengerDiscount, ReturnPosition::Request, SearchTripNearbyCities::Request, SearchTrips::Request, SessionLogin::Request, TicketsBooking::Request, TicketsBooking::Request::Passenger, UnlockSeats::Request
Instance Method Summary
collapse
Constructor Details
#initialize(attrs = {}) ⇒ BaseRequest
Returns a new instance of BaseRequest.
5
6
7
8
9
|
# File 'lib/gillbus/base_request.rb', line 5
def initialize(attrs = {})
attrs.each do |k, v|
send "#{k}=", v
end
end
|
Instance Method Details
#method ⇒ Object
19
20
21
|
# File 'lib/gillbus/base_request.rb', line 19
def method
:post
end
|
#params ⇒ Object
15
16
17
|
# File 'lib/gillbus/base_request.rb', line 15
def params
{}
end
|
#path ⇒ Object
11
12
13
|
# File 'lib/gillbus/base_request.rb', line 11
def path
raise NotImplementedError, 'you need to define "path" method'
end
|