Sha256: 419a7e8391ee1a0258cc6f41f1c0648138c512364e4aabdedce27becd918fcd1
Contents?: true
Size: 634 Bytes
Versions: 29
Compression:
Stored size: 634 Bytes
Contents
module ActiveMerchant #:nodoc: module Shipping class TrackingResponse < Response attr_reader :tracking_number # string attr_reader :shipment_events # array of ShipmentEvents in chronological order attr_reader :origin, :destination def initialize(success, message, params = {}, options = {}) @tracking_number = options[:tracking_number] @shipment_events = Array(options[:shipment_events]) @origin, @destination = options[:origin], options[:destination] super end def latest_event @shipment_events.last end end end end
Version data entries
29 entries across 29 versions & 4 rubygems