Sha256: 07daa60be84bc486db50debb25bde40c14d2303f683fd0c9df39b5586286aace

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

# frozen_string_literal: true

module FriendlyShipping
  class Label
    attr_reader :id,
                :shipment_id,
                :tracking_number,
                :service_code,
                :label_href,
                :data,
                :label_format,
                :shipment_cost,
                :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 = id
      @shipment_id = shipment_id
      @tracking_number = tracking_number
      @service_code = service_code
      @label_href = label_href
      @label_format = label_format
      @shipment_cost = shipment_cost
      @label_data = label_data
      @data = data
      @original_request = original_request
      @original_response = original_response
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
friendly_shipping-0.3.4 lib/friendly_shipping/label.rb
friendly_shipping-0.3.3 lib/friendly_shipping/label.rb
friendly_shipping-0.3.0 lib/friendly_shipping/label.rb
friendly_shipping-0.2.6 lib/friendly_shipping/label.rb
friendly_shipping-0.2.5 lib/friendly_shipping/label.rb
friendly_shipping-0.2.4 lib/friendly_shipping/label.rb