Class: Edi::Wayfair::CatalogItemUpdateSender::UpdateResult

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

Overview

Service object: update result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, request_id: nil, errors: nil, ecl: nil, payload: nil) ⇒ UpdateResult

Parameters:

  • success (Boolean, nil) (defaults to: nil)

    whether the update was accepted

  • request_id (String, nil) (defaults to: nil)

    Wayfair async request id

  • errors (Array, nil) (defaults to: nil)

    error messages when the update failed

  • ecl (EdiCommunicationLog, nil) (defaults to: nil)

    tracking log record

  • payload (Hash, nil) (defaults to: nil)

    generated item payload



66
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 66

def initialize(success: nil, request_id: nil, errors: nil, ecl: nil, payload: nil) = super

Instance Attribute Details

#eclObject (readonly)

Returns the value of attribute ecl

Returns:

  • (Object)

    the current value of ecl



59
60
61
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 59

def ecl
  @ecl
end

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



59
60
61
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 59

def errors
  @errors
end

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



59
60
61
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 59

def payload
  @payload
end

#request_idObject (readonly)

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



59
60
61
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 59

def request_id
  @request_id
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



59
60
61
# File 'app/services/edi/wayfair/catalog_item_update_sender.rb', line 59

def success
  @success
end