Class: XmlConv::Model::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlconv/model/address.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAddress

Returns a new instance of Address.



9
10
11
# File 'lib/xmlconv/model/address.rb', line 9

def initialize
	@lines = []
end

Instance Attribute Details

#cityObject

Returns the value of attribute city.



7
8
9
# File 'lib/xmlconv/model/address.rb', line 7

def city
  @city
end

#countryObject

Returns the value of attribute country.



7
8
9
# File 'lib/xmlconv/model/address.rb', line 7

def country
  @country
end

#linesObject (readonly)

Returns the value of attribute lines.



8
9
10
# File 'lib/xmlconv/model/address.rb', line 8

def lines
  @lines
end

#zip_codeObject

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

#sizeObject



15
16
17
# File 'lib/xmlconv/model/address.rb', line 15

def size
	@lines.size
end