lib/friendly_shipping/label.rb in friendly_shipping-0.2.3 vs lib/friendly_shipping/label.rb in friendly_shipping-0.2.4
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module FriendlyShipping
class Label
attr_reader :id,
:shipment_id,
:tracking_number,
@@ -11,21 +13,21 @@
:label_data,
:original_request,
:original_response
def initialize(
- id: nil,
- shipment_id: nil,
- tracking_number: nil,
- service_code: nil,
- label_href: nil,
- label_format: nil,
- label_data: nil,
- shipment_cost: nil,
- data: {},
- original_request: nil,
- original_response: nil
- )
+ id: nil,
+ shipment_id: nil,
+ tracking_number: nil,
+ service_code: nil,
+ label_href: nil,
+ label_format: nil,
+ label_data: nil,
+ shipment_cost: nil,
+ data: {},
+ original_request: nil,
+ original_response: nil
+ )
@id = id
@shipment_id = shipment_id
@tracking_number = tracking_number
@service_code = service_code
@label_href = label_href