class Deliveries::Couriers::MondialRelay::Address
Public Instance Methods
city()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 13 def city I18n.transliterate(@city.to_s).gsub(/[^A-Z_\-' ]/i, '').upcase.truncate(25, omission: '') end
country()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 17 def country @country.to_s.upcase end
email()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 25 def email format_email end
name()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 5 def name I18n.transliterate(@name.to_s).gsub(%r{[^0-9A-Z_\-'., /]}i, '').upcase.truncate(32, omission: '') end
phone()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 21 def phone format_international_phone end
street()
click to toggle source
# File lib/deliveries/couriers/mondial_relay/address.rb, line 9 def street I18n.transliterate(@street.to_s).gsub(%r{[^0-9A-Z_\-'., /]}i, '').upcase.truncate(32, omission: '') end