Class: Deliveries::Couriers::Spring::Address
- Inherits:
-
Address
- Object
- Address
- Deliveries::Couriers::Spring::Address
show all
- Defined in:
- lib/deliveries/couriers/spring/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, #city, #country, #email, #phone, #postcode, #state
Instance Method Summary
collapse
Methods inherited from Address
#courierize, #initialize
Instance Method Details
#name ⇒ Object
5
6
7
|
# File 'lib/deliveries/couriers/spring/address.rb', line 5
def name
@name.to_s[0, 35]
end
|
#street ⇒ Object
9
10
11
|
# File 'lib/deliveries/couriers/spring/address.rb', line 9
def street
@street.to_s[0, 35]
end
|
#street2 ⇒ Object
13
14
15
|
# File 'lib/deliveries/couriers/spring/address.rb', line 13
def street2
@street.to_s[35, 35].to_s
end
|
#street3 ⇒ Object
17
18
19
|
# File 'lib/deliveries/couriers/spring/address.rb', line 17
def street3
@street.to_s[70, 35].to_s
end
|