Class: Edi::MarketplaceLabelPurchaser::PurchaseResult
- Inherits:
-
Data
- Object
- Data
- Edi::MarketplaceLabelPurchaser::PurchaseResult
- Defined in:
- app/services/edi/marketplace_label_purchaser.rb
Overview
Standardized result object for label operations
Instance Attribute Summary collapse
-
#carrier ⇒ Object
readonly
Returns the value of attribute carrier.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#label_id ⇒ Object
readonly
Returns the value of attribute label_id.
-
#label_upload ⇒ Object
readonly
Returns the value of attribute label_upload.
-
#service_type ⇒ Object
readonly
Returns the value of attribute service_type.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
Instance Method Summary collapse
-
#initialize(success: nil, label_id: nil, tracking_number: nil, carrier: nil, service_type: nil, label_upload: nil, error: nil) ⇒ PurchaseResult
constructor
A new instance of PurchaseResult.
Constructor Details
#initialize(success: nil, label_id: nil, tracking_number: nil, carrier: nil, service_type: nil, label_upload: nil, error: nil) ⇒ PurchaseResult
Returns a new instance of PurchaseResult.
31 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 31 def initialize(success: nil, label_id: nil, tracking_number: nil, carrier: nil, service_type: nil, label_upload: nil, error: nil) = super |
Instance Attribute Details
#carrier ⇒ Object (readonly)
Returns the value of attribute carrier
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def carrier @carrier end |
#error ⇒ Object (readonly)
Returns the value of attribute error
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def error @error end |
#label_id ⇒ Object (readonly)
Returns the value of attribute label_id
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def label_id @label_id end |
#label_upload ⇒ Object (readonly)
Returns the value of attribute label_upload
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def label_upload @label_upload end |
#service_type ⇒ Object (readonly)
Returns the value of attribute service_type
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def service_type @service_type end |
#success ⇒ Object (readonly)
Returns the value of attribute success
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def success @success end |
#tracking_number ⇒ Object (readonly)
Returns the value of attribute tracking_number
30 31 32 |
# File 'app/services/edi/marketplace_label_purchaser.rb', line 30 def tracking_number @tracking_number end |