Sha256: fb10357d94378630343d3fe8b3062616c4dc7abc8fb824e9ebbfc81d8cebafb4
Contents?: true
Size: 990 Bytes
Versions: 6
Compression:
Stored size: 990 Bytes
Contents
module Fedex class TrackingInformation class Event attr_reader :description, :type, :occurred_at, :city, :state, :postal_code, :country, :residential, :exception_code, :exception_description alias_method :occured_at, :occurred_at def initialize(details = {}) @description = details[:event_description] @type = details[:event_type] @occurred_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
Version data entries
6 entries across 6 versions & 1 rubygems