Method: Australia::Postcode#initialize
- Defined in:
- lib/australia/postcode.rb
#initialize(postcode, suburb, state, delivery_center, type, latitude, longitude) ⇒ Postcode
13 14 15 16 17 18 19 20 21 |
# File 'lib/australia/postcode.rb', line 13 def initialize(postcode, suburb, state, delivery_center, type, latitude, longitude) @postcode = postcode.to_i @suburb = suburb.strip @state = state.strip @delivery_center = delivery_center.strip @type = type.strip @latitude = latitude.to_f @longitude = longitude.to_f end |