Class: Edi::Walmart::ShipWithWalmart::DownloadResult

Inherits:
Data
  • Object
show all
Defined in:
app/services/edi/walmart/ship_with_walmart.rb

Overview

Service object: download result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, label_data: nil, content_type: nil, error: nil) ⇒ DownloadResult

Returns a new instance of DownloadResult.



37
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 37

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

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



36
37
38
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 36

def content_type
  @content_type
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



36
37
38
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 36

def error
  @error
end

#label_dataObject (readonly)

Returns the value of attribute label_data

Returns:

  • (Object)

    the current value of label_data



36
37
38
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 36

def label_data
  @label_data
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



36
37
38
# File 'app/services/edi/walmart/ship_with_walmart.rb', line 36

def success
  @success
end