Class: SPS::Address
- Inherits:
-
Object
- Object
- SPS::Address
- Extended by:
- Converter
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/sps_king/account/address.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#address_line1 ⇒ Object
Returns the value of attribute address_line1.
-
#address_line2 ⇒ Object
Returns the value of attribute address_line2.
-
#building_name ⇒ Object
Returns the value of attribute building_name.
-
#building_number ⇒ Object
Returns the value of attribute building_number.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#country_subdivision ⇒ Object
Returns the value of attribute country_subdivision.
-
#department ⇒ Object
Returns the value of attribute department.
-
#district_name ⇒ Object
Returns the value of attribute district_name.
-
#floor ⇒ Object
Returns the value of attribute floor.
-
#post_box ⇒ Object
Returns the value of attribute post_box.
-
#post_code ⇒ Object
Returns the value of attribute post_code.
-
#room ⇒ Object
Returns the value of attribute room.
-
#street_name ⇒ Object
Returns the value of attribute street_name.
-
#sub_department ⇒ Object
Returns the value of attribute sub_department.
-
#town_location_name ⇒ Object
Returns the value of attribute town_location_name.
-
#town_name ⇒ Object
Returns the value of attribute town_name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Address
constructor
A new instance of Address.
Methods included from Converter
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_line1 ⇒ Object
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_line2 ⇒ Object
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_name ⇒ Object
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_number ⇒ Object
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_code ⇒ Object
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_subdivision ⇒ Object
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 |
#department ⇒ Object
Returns the value of attribute department.
9 10 11 |
# File 'lib/sps_king/account/address.rb', line 9 def department @department end |
#district_name ⇒ Object
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 |
#floor ⇒ Object
Returns the value of attribute floor.
9 10 11 |
# File 'lib/sps_king/account/address.rb', line 9 def floor @floor end |
#post_box ⇒ Object
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_code ⇒ Object
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 |
#room ⇒ Object
Returns the value of attribute room.
9 10 11 |
# File 'lib/sps_king/account/address.rb', line 9 def room @room end |
#street_name ⇒ Object
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_department ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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 |