Class: Ausburbs::State
- Inherits:
-
Object
- Object
- Ausburbs::State
- Defined in:
- lib/ausburbs/state.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#suburbs ⇒ Object
Returns the value of attribute suburbs.
Instance Method Summary collapse
-
#initialize(*args) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(*args) ⇒ State
Returns a new instance of State.
5 6 7 8 |
# File 'lib/ausburbs/state.rb', line 5 def initialize(*args) self.name = args[0] load_suburb_data!(args[1]) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/ausburbs/state.rb', line 3 def name @name end |
#suburbs ⇒ Object
Returns the value of attribute suburbs.
3 4 5 |
# File 'lib/ausburbs/state.rb', line 3 def suburbs @suburbs end |