Class: Ausburbs::Suburb

Inherits:
Object
  • Object
show all
Defined in:
lib/ausburbs/suburb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil) ⇒ Suburb

Returns a new instance of Suburb.



4
5
6
# File 'lib/ausburbs/suburb.rb', line 4

def initialize(data = nil)
  parse!(data) if data
end

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude.



3
4
5
# File 'lib/ausburbs/suburb.rb', line 3

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



3
4
5
# File 'lib/ausburbs/suburb.rb', line 3

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/ausburbs/suburb.rb', line 3

def name
  @name
end

#postcodeObject

Returns the value of attribute postcode.



3
4
5
# File 'lib/ausburbs/suburb.rb', line 3

def postcode
  @postcode
end

#stateObject

Returns the value of attribute state.



3
4
5
# File 'lib/ausburbs/suburb.rb', line 3

def state
  @state
end