Class: FacturX::Address
- Inherits:
-
Object
- Object
- FacturX::Address
- Defined in:
- lib/factur_x/address.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#country_subdivision ⇒ Object
readonly
Returns the value of attribute country_subdivision.
-
#line_one ⇒ Object
readonly
Returns the value of attribute line_one.
-
#line_three ⇒ Object
readonly
Returns the value of attribute line_three.
-
#line_two ⇒ Object
readonly
Returns the value of attribute line_two.
-
#postcode ⇒ Object
readonly
Returns the value of attribute postcode.
Instance Method Summary collapse
-
#initialize(country_code:, line_one: nil, line_two: nil, line_three: nil, city: nil, postcode: nil, country_subdivision: nil) ⇒ Address
constructor
A new instance of Address.
Constructor Details
#initialize(country_code:, line_one: nil, line_two: nil, line_three: nil, city: nil, postcode: nil, country_subdivision: nil) ⇒ Address
Returns a new instance of Address.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/factur_x/address.rb', line 8 def initialize(country_code:, line_one: nil, line_two: nil, line_three: nil, city: nil, postcode: nil, country_subdivision: nil) @country_code = country_code @line_one = line_one @line_two = line_two @line_three = line_three @city = city @postcode = postcode @country_subdivision = country_subdivision end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def city @city end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def country_code @country_code end |
#country_subdivision ⇒ Object (readonly)
Returns the value of attribute country_subdivision.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def country_subdivision @country_subdivision end |
#line_one ⇒ Object (readonly)
Returns the value of attribute line_one.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def line_one @line_one end |
#line_three ⇒ Object (readonly)
Returns the value of attribute line_three.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def line_three @line_three end |
#line_two ⇒ Object (readonly)
Returns the value of attribute line_two.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def line_two @line_two end |
#postcode ⇒ Object (readonly)
Returns the value of attribute postcode.
5 6 7 |
# File 'lib/factur_x/address.rb', line 5 def postcode @postcode end |