lib/fedex/tracking_information/event.rb in fedex-2.2.2 vs lib/fedex/tracking_information/event.rb in fedex-3.0.0
- old
+ new
@@ -1,19 +1,21 @@
module Fedex
class TrackingInformation
class Event
attr_reader :description, :type, :occured_at, :city, :state, :postal_code,
- :country, :residential
+ :country, :residential, :exception_code, :exception_description
def initialize(details = {})
- @description = details[:event_description]
- @type = details[:event_type]
- @occured_at = Time.parse(details[:timestamp])
- @city = details[:address][:city]
- @state = details[:address][:state_or_province_code]
- @postal_code = details[:address][:postal_code]
- @country = details[:address][:country_code]
- @residential = details[:address][:residential] == "true"
+ @description = details[:event_description]
+ @type = details[:event_type]
+ @occured_at = Time.parse(details[:timestamp])
+ @city = details[:address][:city]
+ @state = details[:address][:state_or_province_code]
+ @postal_code = details[:address][:postal_code]
+ @country = details[:address][:country_code]
+ @residential = details[:address][:residential] == "true"
+ @exception_code = details[:status_exception_code]
+ @exception_description = details[:status_exception_description]
end
end
end
-end
\ No newline at end of file
+end