Class: Deliveries::Couriers::CorreosExpress::Address
- Inherits:
-
Address
- Object
- Address
- Deliveries::Couriers::CorreosExpress::Address
show all
- Defined in:
- lib/deliveries/couriers/correos_express/address.rb
Constant Summary
Constants inherited
from Address
Address::COUNTRY_PHONE_PREFIXES, Address::COUNTRY_TRUNK_PREFIXES
Instance Attribute Summary
Attributes inherited from Address
#address_id, #postcode, #state
Instance Method Summary
collapse
Methods inherited from Address
#courierize, #initialize
Instance Method Details
#city ⇒ Object
13
14
15
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 13
def city
@city.to_s[0, 40]
end
|
#country ⇒ Object
25
26
27
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 25
def country
@country.to_s.upcase
end
|
#email ⇒ Object
21
22
23
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 21
def email
@email.gsub(/\+.+@/, '@').to_s[0, 75]
end
|
#name ⇒ Object
5
6
7
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 5
def name
@name.to_s[0, 40]
end
|
#phone ⇒ Object
17
18
19
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 17
def phone
@phone.to_s[0, 15]
end
|
#street ⇒ Object
9
10
11
|
# File 'lib/deliveries/couriers/correos_express/address.rb', line 9
def street
@street.to_s[0, 300]
end
|