Class: Justiz::Address
- Inherits:
-
Object
- Object
- Justiz::Address
- Defined in:
- lib/justiz/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#plz ⇒ Object
readonly
Returns the value of attribute plz.
-
#street ⇒ Object
readonly
Returns the value of attribute street.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(text) ⇒ Address
Returns a new instance of Address.
5 6 7 8 |
# File 'lib/justiz/address.rb', line 5 def initialize(text) @text = text.to_s parse end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
3 4 5 |
# File 'lib/justiz/address.rb', line 3 def city @city end |
#plz ⇒ Object (readonly)
Returns the value of attribute plz.
3 4 5 |
# File 'lib/justiz/address.rb', line 3 def plz @plz end |
#street ⇒ Object (readonly)
Returns the value of attribute street.
3 4 5 |
# File 'lib/justiz/address.rb', line 3 def street @street end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/justiz/address.rb', line 3 def text @text end |