Class: FacturX::Address

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cityObject (readonly)

Returns the value of attribute city.



5
6
7
# File 'lib/factur_x/address.rb', line 5

def city
  @city
end

#country_codeObject (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_subdivisionObject (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_oneObject (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_threeObject (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_twoObject (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

#postcodeObject (readonly)

Returns the value of attribute postcode.



5
6
7
# File 'lib/factur_x/address.rb', line 5

def postcode
  @postcode
end