Class: QuickTravel::DocumentGroup

Inherits:
Adapter
  • Object
show all
Defined in:
lib/quick_travel/document_group.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

#pdf_urlObject



8
9
10
# File 'lib/quick_travel/document_group.rb', line 8

def pdf_url
  "#{QuickTravel.config.url}/api/bookings/#{@booking_id}/document_groups/#{@id}.pdf?key=#{Encrypt.access_key("document_group:#{@id}")}"
end