Class: XmlConv::Model::Address
- Inherits:
-
Object
- Object
- XmlConv::Model::Address
- Defined in:
- lib/xmlconv/model/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#zip_code ⇒ Object
Returns the value of attribute zip_code.
Instance Method Summary collapse
- #add_line(line) ⇒ Object
-
#initialize ⇒ Address
constructor
A new instance of Address.
- #size ⇒ Object
Constructor Details
#initialize ⇒ Address
Returns a new instance of Address.
9 10 11 |
# File 'lib/xmlconv/model/address.rb', line 9 def initialize @lines = [] end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
7 8 9 |
# File 'lib/xmlconv/model/address.rb', line 7 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
7 8 9 |
# File 'lib/xmlconv/model/address.rb', line 7 def country @country end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
8 9 10 |
# File 'lib/xmlconv/model/address.rb', line 8 def lines @lines end |
#zip_code ⇒ Object
Returns the value of attribute zip_code.
7 8 9 |
# File 'lib/xmlconv/model/address.rb', line 7 def zip_code @zip_code end |
Instance Method Details
#add_line(line) ⇒ Object
12 13 14 |
# File 'lib/xmlconv/model/address.rb', line 12 def add_line(line) lines.push(line) end |
#size ⇒ Object
15 16 17 |
# File 'lib/xmlconv/model/address.rb', line 15 def size @lines.size end |