Class: QuickTravel::Document

Inherits:
Adapter
  • Object
show all
Defined in:
lib/quick_travel/document.rb

Instance Method Summary collapse

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_pdfObject

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