Class: Edi::Wayfair::OrderMessageProcessor::BatchProcessResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/wayfair/order_message_processor.rb

Overview

Result of processing a single order batch.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(batch_number: nil, orders_created: nil, orders_in_batch: nil) ⇒ BatchProcessResult

Returns a new instance of BatchProcessResult.

Parameters:

  • batch_number (Integer, String, nil) (defaults to: nil)

    batch identifier

  • orders_created (Array<Order>, nil) (defaults to: nil)

    orders created from the batch

  • orders_in_batch (Integer, nil) (defaults to: nil)

    total orders seen in the batch



25
# File 'app/services/edi/wayfair/order_message_processor.rb', line 25

def initialize(batch_number: nil, orders_created: nil, orders_in_batch: nil) = super

Instance Attribute Details

#batch_numberObject (readonly)

Returns the value of attribute batch_number

Returns:

  • (Object)

    the current value of batch_number



21
22
23
# File 'app/services/edi/wayfair/order_message_processor.rb', line 21

def batch_number
  @batch_number
end

#orders_createdObject (readonly)

Returns the value of attribute orders_created

Returns:

  • (Object)

    the current value of orders_created



21
22
23
# File 'app/services/edi/wayfair/order_message_processor.rb', line 21

def orders_created
  @orders_created
end

#orders_in_batchObject (readonly)

Returns the value of attribute orders_in_batch

Returns:

  • (Object)

    the current value of orders_in_batch



21
22
23
# File 'app/services/edi/wayfair/order_message_processor.rb', line 21

def orders_in_batch
  @orders_in_batch
end