Class: Pdf::Label::LetterShip
- Inherits:
-
BaseService
- Object
- BaseService
- Pdf::Label::LetterShip
- Includes:
- Base
- Defined in:
- app/services/pdf/label/letter_ship.rb
Overview
Service object: letter ship.
Defined Under Namespace
Classes: Result
Constant Summary
Constants included from Base
Base::FONT, Base::NIMBUS_SANS_PATH, Base::NIMBUS_SANS_PATH_BOLD, Base::WY_LOGO_PATH
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
12 13 14 |
# File 'app/services/pdf/label/letter_ship.rb', line 12 def self.call(...) new.call(...) end |
Instance Method Details
#call(shipment, ship_label_tmp_path, dropoff_url: nil, label_pdf_path: nil) ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/services/pdf/label/letter_ship.rb', line 16 def call(shipment, ship_label_tmp_path, dropoff_url: nil, label_pdf_path: nil) @shipment = shipment @ship_label_tmp_path = ship_label_tmp_path @dropoff_url = dropoff_url @label_pdf_path = label_pdf_path Result.new(pdf: generate_pdf) end |