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

Instance Attribute Details

#address_typeObject

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_addressObject

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

#localityObject

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_codeObject

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

#regionObject

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_addressObject

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