Class: ActiveShipping::Label
- Inherits:
-
Object
- Object
- ActiveShipping::Label
- Defined in:
- lib/active_shipping/label.rb
Instance Attribute Summary collapse
-
#img_data ⇒ Object
readonly
Returns the value of attribute img_data.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
Instance Method Summary collapse
-
#initialize(tracking_number, img_data) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(tracking_number, img_data) ⇒ Label
Returns a new instance of Label.
5 6 7 8 |
# File 'lib/active_shipping/label.rb', line 5 def initialize(tracking_number, img_data) @tracking_number = tracking_number @img_data = img_data end |
Instance Attribute Details
#img_data ⇒ Object (readonly)
Returns the value of attribute img_data.
3 4 5 |
# File 'lib/active_shipping/label.rb', line 3 def img_data @img_data end |
#tracking_number ⇒ Object (readonly)
Returns the value of attribute tracking_number.
3 4 5 |
# File 'lib/active_shipping/label.rb', line 3 def tracking_number @tracking_number end |