Class: SimpleShipping::Fedex::ShipmentResponse
- Inherits:
-
Response
- Object
- Abstract::Response
- Response
- SimpleShipping::Fedex::ShipmentResponse
- Defined in:
- lib/simple_shipping/fedex/shipment_response.rb
Overview
A wrapper for UPS ShipmentResponse.
Instance Attribute Summary
Attributes inherited from Abstract::Response
Instance Method Summary collapse
-
#label_image_base64 ⇒ Object
Get the label as abstract64 encoded data response.label_image_base64 # => “odGqk/KmgLaawV…” This can be used directly in an HTML image tag with src=“data:image/gif;base64,…”.
Methods inherited from Abstract::Response
Constructor Details
This class inherits a constructor from SimpleShipping::Abstract::Response
Instance Method Details
#label_image_base64 ⇒ Object
Get the label as abstract64 encoded data
response.label_image_base64 # => "odGqk/KmgLaawV..."
This can be used directly in an HTML image tag with
src="data:image/gif;base64,..."
8 9 10 |
# File 'lib/simple_shipping/fedex/shipment_response.rb', line 8 def label_image_base64 value_of(:process_shipment_reply, :completed_shipment_detail, :completed_package_details, :label, :parts, :image) end |