Class: Falsify::Address
- Inherits:
-
Object
- Object
- Falsify::Address
- Defined in:
- lib/falsify/models/address.rb
Overview
Used for:
- Order.billing_address
- Order.shipping_address
- Customer.addresses
- Customer.default_address
Instance Attribute Summary collapse
-
#address1 ⇒ String
The street address of the billing address.
-
#address2 ⇒ String
An optional additional field for the street address of the billing address.
-
#city ⇒ String
The city, town, or village of the billing address.
-
#company ⇒ String
The company of the person associated with the billing address.
-
#country ⇒ String
The name of the country of the billing address.
-
#country_code ⇒ String
readonly
The two-letter code (ISO 3166-1 format) for the country of the billing address.
-
#first_name ⇒ String
The first name of the person associated with the payment method.
-
#last_name ⇒ String
The last name of the person associated with the payment method.
-
#latitude ⇒ String
The latitude of the billing address.
-
#longitude ⇒ String
The longitude of the billing address.
-
#name ⇒ String
The full name of the person associated with the payment method.
-
#phone ⇒ String
The phone number at the billing address.
-
#province ⇒ String
The name of the region (province, state, prefecture, ...) of the billing address.
-
#province_code ⇒ String
The two-letter abbreviation of the region of the billing address.
-
#zip ⇒ String
The postal code (zip, postcode, Eircode, ...) of the billing address.
Instance Attribute Details
#address1 ⇒ String
The street address of the billing address.
10 11 12 |
# File 'lib/falsify/models/address.rb', line 10 def address1 @address1 end |
#address2 ⇒ String
An optional additional field for the street address of the billing address.
13 14 15 |
# File 'lib/falsify/models/address.rb', line 13 def address2 @address2 end |
#city ⇒ String
The city, town, or village of the billing address.
16 17 18 |
# File 'lib/falsify/models/address.rb', line 16 def city @city end |
#company ⇒ String
The company of the person associated with the billing address.
19 20 21 |
# File 'lib/falsify/models/address.rb', line 19 def company @company end |
#country ⇒ String
The name of the country of the billing address.
22 23 24 |
# File 'lib/falsify/models/address.rb', line 22 def country @country end |
#country_code ⇒ String (readonly)
The two-letter code (ISO 3166-1 format) for the country of the billing address.
25 26 27 |
# File 'lib/falsify/models/address.rb', line 25 def country_code @country_code end |
#first_name ⇒ String
The first name of the person associated with the payment method.
28 29 30 |
# File 'lib/falsify/models/address.rb', line 28 def first_name @first_name end |
#last_name ⇒ String
The last name of the person associated with the payment method.
31 32 33 |
# File 'lib/falsify/models/address.rb', line 31 def last_name @last_name end |
#latitude ⇒ String
The latitude of the billing address.
34 35 36 |
# File 'lib/falsify/models/address.rb', line 34 def latitude @latitude end |
#longitude ⇒ String
The longitude of the billing address.
37 38 39 |
# File 'lib/falsify/models/address.rb', line 37 def longitude @longitude end |
#name ⇒ String
The full name of the person associated with the payment method.
40 41 42 |
# File 'lib/falsify/models/address.rb', line 40 def name @name end |
#phone ⇒ String
The phone number at the billing address.
43 44 45 |
# File 'lib/falsify/models/address.rb', line 43 def phone @phone end |
#province ⇒ String
The name of the region (province, state, prefecture, ...) of the billing address.
46 47 48 |
# File 'lib/falsify/models/address.rb', line 46 def province @province end |
#province_code ⇒ String
The two-letter abbreviation of the region of the billing address.
49 50 51 |
# File 'lib/falsify/models/address.rb', line 49 def province_code @province_code end |
#zip ⇒ String
The postal code (zip, postcode, Eircode, ...) of the billing address.
52 53 54 |
# File 'lib/falsify/models/address.rb', line 52 def zip @zip end |