Class: Pdf::Label::LetterShip
- Inherits:
-
BaseService
- Object
- BaseService
- Pdf::Label::LetterShip
- Includes:
- Base
- Defined in:
- app/services/pdf/label/letter_ship.rb
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(*args, **kwargs, &block) ⇒ Object
7 8 9 |
# File 'app/services/pdf/label/letter_ship.rb', line 7 def self.call(*args, **kwargs, &block) new.call(*args, **kwargs, &block) end |
Instance Method Details
#call(shipment, ship_label_tmp_path, dropoff_url: nil) ⇒ Object
11 12 13 14 15 16 |
# File 'app/services/pdf/label/letter_ship.rb', line 11 def call(shipment, ship_label_tmp_path, dropoff_url: nil) @shipment = shipment @ship_label_tmp_path = ship_label_tmp_path @dropoff_url = dropoff_url Result.new(pdf: generate_pdf) end |