Class: Deliveries::Couriers::Spring::Address

Inherits:
Address
  • Object
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

Constructor Details

This class inherits a constructor from Deliveries::Address

Instance Method Details

#nameObject



5
6
7
# File 'lib/deliveries/couriers/spring/address.rb', line 5

def name
  @name.to_s[0, 35]
end

#streetObject



9
10
11
# File 'lib/deliveries/couriers/spring/address.rb', line 9

def street
  @street.to_s[0, 35]
end

#street2Object



13
14
15
# File 'lib/deliveries/couriers/spring/address.rb', line 13

def street2
  @street.to_s[35, 35].to_s
end

#street3Object



17
18
19
# File 'lib/deliveries/couriers/spring/address.rb', line 17

def street3
  @street.to_s[70, 35].to_s
end