Class: Ausburbs::Suburb
- Inherits:
-
Object
- Object
- Ausburbs::Suburb
- Defined in:
- lib/ausburbs/suburb.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ Suburb
constructor
A new instance of Suburb.
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
#latitude ⇒ Object
Returns the value of attribute latitude.
3 4 5 |
# File 'lib/ausburbs/suburb.rb', line 3 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
3 4 5 |
# File 'lib/ausburbs/suburb.rb', line 3 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ausburbs/suburb.rb', line 3 def name @name end |
#postcode ⇒ Object
Returns the value of attribute postcode.
3 4 5 |
# File 'lib/ausburbs/suburb.rb', line 3 def postcode @postcode end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/ausburbs/suburb.rb', line 3 def state @state end |