Class: Edi::Amazon::ShipWithAmazon::DocumentResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/amazon/ship_with_amazon.rb

Overview

Service object: document result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, label_data: nil, format: nil, error: nil) ⇒ DocumentResult

Returns a new instance of DocumentResult.



30
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 30

def initialize(success: nil, label_data: nil, format: nil, error: nil) = super

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



29
30
31
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 29

def error
  @error
end

#formatObject (readonly)

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



29
30
31
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 29

def format
  @format
end

#label_dataObject (readonly)

Returns the value of attribute label_data

Returns:

  • (Object)

    the current value of label_data



29
30
31
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 29

def label_data
  @label_data
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



29
30
31
# File 'app/services/edi/amazon/ship_with_amazon.rb', line 29

def success
  @success
end