Class: ActiveMerchant::Shipping::StampsShippingResponse
- Inherits:
-
ShippingResponse
- Object
- Response
- ShippingResponse
- ActiveMerchant::Shipping::StampsShippingResponse
- Includes:
- PostsData
- Defined in:
- lib/active_shipping/shipping/carriers/stamps.rb
Instance Attribute Summary collapse
-
#available_postage ⇒ Object
readonly
Returns the value of attribute available_postage.
-
#control_total ⇒ Object
readonly
Returns the value of attribute control_total.
-
#label_url ⇒ Object
readonly
Returns the value of attribute label_url.
-
#rate ⇒ Object
readonly
Returns the value of attribute rate.
-
#stamps_tx_id ⇒ Object
readonly
Returns the value of attribute stamps_tx_id.
Attributes inherited from ShippingResponse
#shipping_id, #tracking_number
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
- #image ⇒ Object
-
#initialize(success, message, params = {}, options = {}) ⇒ StampsShippingResponse
constructor
A new instance of StampsShippingResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ StampsShippingResponse
Returns a new instance of StampsShippingResponse.
861 862 863 864 865 866 867 868 869 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 861 def initialize(success, , params = {}, = {}) super @rate = [:rate] @stamps_tx_id = [:stamps_tx_id] @label_url = [:label_url] @image_data = [:image_data] @available_postage = [:available_postage] @control_total = [:control_total] end |
Instance Attribute Details
#available_postage ⇒ Object (readonly)
Returns the value of attribute available_postage.
859 860 861 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 859 def available_postage @available_postage end |
#control_total ⇒ Object (readonly)
Returns the value of attribute control_total.
859 860 861 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 859 def control_total @control_total end |
#label_url ⇒ Object (readonly)
Returns the value of attribute label_url.
859 860 861 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 859 def label_url @label_url end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate.
859 860 861 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 859 def rate @rate end |
#stamps_tx_id ⇒ Object (readonly)
Returns the value of attribute stamps_tx_id.
859 860 861 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 859 def stamps_tx_id @stamps_tx_id end |
Instance Method Details
#image ⇒ Object
871 872 873 |
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 871 def image @image_data ||= ssl_get(label_url) end |