Class: Perambulate::Address
- Inherits:
-
Object
- Object
- Perambulate::Address
- Defined in:
- lib/perambulate/address/address.rb
Instance Attribute Summary collapse
-
#designation ⇒ Object
Returns the value of attribute designation.
-
#postcode ⇒ Object
Returns the value of attribute postcode.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street_name ⇒ Object
Returns the value of attribute street_name.
-
#street_number ⇒ Object
Returns the value of attribute street_number.
-
#suburb ⇒ Object
Returns the value of attribute suburb.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Address
constructor
A new instance of Address.
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( = {}) @street_number = [:street_number] @street_name = [:street_name] @designation = [:designation] @suburb = [:suburb] @postcode = [:postcode] @state = [:state] end |
Instance Attribute Details
#designation ⇒ Object
Returns the value of attribute designation.
3 4 5 |
# File 'lib/perambulate/address/address.rb', line 3 def designation @designation end |
#postcode ⇒ Object
Returns the value of attribute postcode.
3 4 5 |
# File 'lib/perambulate/address/address.rb', line 3 def postcode @postcode end |
#state ⇒ Object
Returns the value of attribute state.
3 4 5 |
# File 'lib/perambulate/address/address.rb', line 3 def state @state end |
#street_name ⇒ Object
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_number ⇒ Object
Returns the value of attribute street_number.
3 4 5 |
# File 'lib/perambulate/address/address.rb', line 3 def street_number @street_number end |
#suburb ⇒ Object
Returns the value of attribute suburb.
3 4 5 |
# File 'lib/perambulate/address/address.rb', line 3 def suburb @suburb end |