Class: Shipping::CartonLabelGenerator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/shipping/carton_label_generator.rb

Overview

Service object: result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pdf: nil, shipment: nil, file_name: nil) ⇒ Result

Returns a new instance of Result.



6
# File 'app/services/shipping/carton_label_generator.rb', line 6

def initialize(pdf: nil, shipment: nil, file_name: nil) = super

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name

Returns:

  • (Object)

    the current value of file_name



5
6
7
# File 'app/services/shipping/carton_label_generator.rb', line 5

def file_name
  @file_name
end

#pdfObject (readonly)

Returns the value of attribute pdf

Returns:

  • (Object)

    the current value of pdf



5
6
7
# File 'app/services/shipping/carton_label_generator.rb', line 5

def pdf
  @pdf
end

#shipmentObject (readonly)

Returns the value of attribute shipment

Returns:

  • (Object)

    the current value of shipment



5
6
7
# File 'app/services/shipping/carton_label_generator.rb', line 5

def shipment
  @shipment
end