Module: Levelup::Templates::UserAddressData
- Included in:
- Requests::CreateAddress
- Defined in:
- lib/levelup/templates/user_address_data.rb
Overview
Apply this template to any request/response that handles all data for a user address.
Instance Attribute Summary collapse
-
#address_type ⇒ Object
The ‘type’ of this address, e.g.
-
#extended_address ⇒ Object
The second line of the address, e.g.
-
#locality ⇒ Object
The city (or some equivalent) of this address.
-
#postal_code ⇒ Object
The postal code for this address.
-
#region ⇒ Object
The state, province, or some other equivalent for this address.
-
#street_address ⇒ Object
The number and street name of this address.
Instance Attribute Details
#address_type ⇒ Object
The ‘type’ of this address, e.g. ‘home’ or ‘work’.
7 8 9 |
# File 'lib/levelup/templates/user_address_data.rb', line 7 def address_type @address_type end |
#extended_address ⇒ Object
The second line of the address, e.g. ‘Suite #40’.
11 12 13 |
# File 'lib/levelup/templates/user_address_data.rb', line 11 def extended_address @extended_address end |
#locality ⇒ Object
The city (or some equivalent) of this address.
13 14 15 |
# File 'lib/levelup/templates/user_address_data.rb', line 13 def locality @locality end |
#postal_code ⇒ Object
The postal code for this address.
17 18 19 |
# File 'lib/levelup/templates/user_address_data.rb', line 17 def postal_code @postal_code end |
#region ⇒ Object
The state, province, or some other equivalent for this address.
15 16 17 |
# File 'lib/levelup/templates/user_address_data.rb', line 15 def region @region end |
#street_address ⇒ Object
The number and street name of this address.
9 10 11 |
# File 'lib/levelup/templates/user_address_data.rb', line 9 def street_address @street_address end |