Class: ActiveShipping::StampsPurchasePostageResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/active_shipping/carriers/stamps.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#message, #params, #request, #test, #xml

Instance Method Summary collapse

Methods inherited from Response

#success?, #test?

Constructor Details

#initialize(success, message, params = {}, options = {}) ⇒ StampsPurchasePostageResponse

Returns a new instance of StampsPurchasePostageResponse.



801
802
803
804
805
806
807
808
# File 'lib/active_shipping/carriers/stamps.rb', line 801

def initialize(success, message, params = {}, options = {})
  super
  @purchase_status   = options[:purchase_status]
  @transaction_id    = options[:transaction_id]
  @available_postage = options[:available_postage]
  @control_total     = options[:control_total]
  @rejection_reason  = options[:rejection_reason]
end

Instance Attribute Details

#available_postageObject (readonly)

Returns the value of attribute available_postage.



799
800
801
# File 'lib/active_shipping/carriers/stamps.rb', line 799

def available_postage
  @available_postage
end

#control_totalObject (readonly)

Returns the value of attribute control_total.



799
800
801
# File 'lib/active_shipping/carriers/stamps.rb', line 799

def control_total
  @control_total
end

#purchase_statusObject (readonly)

Returns the value of attribute purchase_status.



799
800
801
# File 'lib/active_shipping/carriers/stamps.rb', line 799

def purchase_status
  @purchase_status
end

#rejection_reasonObject (readonly)

Returns the value of attribute rejection_reason.



799
800
801
# File 'lib/active_shipping/carriers/stamps.rb', line 799

def rejection_reason
  @rejection_reason
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



799
800
801
# File 'lib/active_shipping/carriers/stamps.rb', line 799

def transaction_id
  @transaction_id
end