Class: Perambulate::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/perambulate/address/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Address

Returns a new instance of Address.



5
6
7
8
9
10
11
12
# File 'lib/perambulate/address/address.rb', line 5

def initialize(options = {})
  @street_number = options[:street_number]
  @street_name = options[:street_name]
  @designation = options[:designation]
  @suburb = options[:suburb]
  @postcode = options[:postcode]
  @state = options[:state]
end

Instance Attribute Details

#designationObject

Returns the value of attribute designation.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def designation
  @designation
end

#postcodeObject

Returns the value of attribute postcode.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def postcode
  @postcode
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def state
  @state
end

#street_nameObject

Returns the value of attribute street_name.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def street_name
  @street_name
end

#street_numberObject

Returns the value of attribute street_number.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def street_number
  @street_number
end

#suburbObject

Returns the value of attribute suburb.



3
4
5
# File 'lib/perambulate/address/address.rb', line 3

def suburb
  @suburb
end