Class: SPS::Address

Inherits:
Object
  • Object
show all
Extended by:
Converter
Includes:
ActiveModel::Validations
Defined in:
lib/sps_king/account/address.rb

Direct Known Subclasses

CreditorAddress, DebtorAddress

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Converter

convert

Constructor Details

#initialize(attributes = {}) ⇒ Address

Returns a new instance of Address.



61
62
63
64
65
# File 'lib/sps_king/account/address.rb', line 61

def initialize(attributes = {})
  attributes.each do |name, value|
    public_send("#{name}=", value)
  end
end

Instance Attribute Details

#address_line1Object

Returns the value of attribute address_line1.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def address_line1
  @address_line1
end

#address_line2Object

Returns the value of attribute address_line2.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def address_line2
  @address_line2
end

#building_nameObject

Returns the value of attribute building_name.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def building_name
  @building_name
end

#building_numberObject

Returns the value of attribute building_number.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def building_number
  @building_number
end

#country_codeObject

Returns the value of attribute country_code.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def country_code
  @country_code
end

#country_subdivisionObject

Returns the value of attribute country_subdivision.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def country_subdivision
  @country_subdivision
end

#departmentObject

Returns the value of attribute department.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def department
  @department
end

#district_nameObject

Returns the value of attribute district_name.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def district_name
  @district_name
end

#floorObject

Returns the value of attribute floor.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def floor
  @floor
end

#post_boxObject

Returns the value of attribute post_box.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def post_box
  @post_box
end

#post_codeObject

Returns the value of attribute post_code.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def post_code
  @post_code
end

#roomObject

Returns the value of attribute room.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def room
  @room
end

#street_nameObject

Returns the value of attribute street_name.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def street_name
  @street_name
end

#sub_departmentObject

Returns the value of attribute sub_department.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def sub_department
  @sub_department
end

#town_location_nameObject

Returns the value of attribute town_location_name.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def town_location_name
  @town_location_name
end

#town_nameObject

Returns the value of attribute town_name.



9
10
11
# File 'lib/sps_king/account/address.rb', line 9

def town_name
  @town_name
end