Class: SimpleShipping::Fedex::ShipmentResponse

Inherits:
Response show all
Defined in:
lib/simple_shipping/fedex/shipment_response.rb

Overview

A wrapper for UPS ShipmentResponse.

Instance Attribute Summary

Attributes inherited from Abstract::Response

#response

Instance Method Summary collapse

Methods inherited from Abstract::Response

#initialize, #value_of

Constructor Details

This class inherits a constructor from SimpleShipping::Abstract::Response

Instance Method Details

#label_image_base64Object

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