Class: QuickTravel::Document
- Defined in:
- lib/quick_travel/document.rb
Instance Method Summary collapse
-
#fetch_pdf ⇒ Object
Do a second request fetching the PDF.
Methods inherited from Adapter
all, belongs_to, create, find, has_many, #to_s, update
Methods included from InitFromHash
#define_readers, #initialize, #to_hash
Instance Method Details
#fetch_pdf ⇒ Object
Do a second request fetching the PDF
14 15 16 |
# File 'lib/quick_travel/document.rb', line 14 def fetch_pdf get_and_validate "/api/bookings/#{@booking_id}/documents/#{@id}.pdf" end |