Class: ReactiveShipping::Label

Inherits:
Object
  • Object
show all
Defined in:
lib/reactive_shipping/label.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tracking_number, img_data) ⇒ Label

Returns a new instance of Label.



5
6
7
8
# File 'lib/reactive_shipping/label.rb', line 5

def initialize(tracking_number, img_data)
  @tracking_number = tracking_number
  @img_data = img_data
end

Instance Attribute Details

#img_dataObject (readonly)

Returns the value of attribute img_data.



3
4
5
# File 'lib/reactive_shipping/label.rb', line 3

def img_data
  @img_data
end

#tracking_numberObject (readonly)

Returns the value of attribute tracking_number.



3
4
5
# File 'lib/reactive_shipping/label.rb', line 3

def tracking_number
  @tracking_number
end