Class: Edi::Wayfair::ProductAdditionSender::Result
- Inherits:
-
Data
- Object
- Data
- Edi::Wayfair::ProductAdditionSender::Result
- Defined in:
- app/services/edi/wayfair/product_addition_sender.rb
Overview
Service object: submit result. skipped lists identifiers of catalog items
dropped before submission (no Wayfair class, or attribute generation
failed/yielded nothing), so a partial batch never succeeds silently.
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
readonly
Returns the value of attribute batch_id.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#product_results ⇒ Object
readonly
Returns the value of attribute product_results.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#skipped ⇒ Object
readonly
Returns the value of attribute skipped.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, request_id: nil, batch_id: nil, status: nil, product_results: nil, errors: nil, skipped: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(success: nil, request_id: nil, batch_id: nil, status: nil, product_results: nil, errors: nil, skipped: nil) ⇒ Result
Returns a new instance of Result.
85 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 85 def initialize(success: nil, request_id: nil, batch_id: nil, status: nil, product_results: nil, errors: nil, skipped: nil) = super |
Instance Attribute Details
#batch_id ⇒ Object (readonly)
Returns the value of attribute batch_id
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def batch_id @batch_id end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def errors @errors end |
#product_results ⇒ Object (readonly)
Returns the value of attribute product_results
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def product_results @product_results end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def request_id @request_id end |
#skipped ⇒ Object (readonly)
Returns the value of attribute skipped
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def skipped @skipped end |
#status ⇒ Object (readonly)
Returns the value of attribute status
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def status @status end |
#success ⇒ Object (readonly)
Returns the value of attribute success
77 78 79 |
# File 'app/services/edi/wayfair/product_addition_sender.rb', line 77 def success @success end |