Class: Falsify::Address

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#address1String

The street address of the billing address.

Returns:

  • (String)


10
11
12
# File 'lib/falsify/models/address.rb', line 10

def address1
  @address1
end

#address2String

An optional additional field for the street address of the billing address.

Returns:

  • (String)


13
14
15
# File 'lib/falsify/models/address.rb', line 13

def address2
  @address2
end

#cityString

The city, town, or village of the billing address.

Returns:

  • (String)


16
17
18
# File 'lib/falsify/models/address.rb', line 16

def city
  @city
end

#companyString

The company of the person associated with the billing address.

Returns:

  • (String)


19
20
21
# File 'lib/falsify/models/address.rb', line 19

def company
  @company
end

#countryString

The name of the country of the billing address.

Returns:

  • (String)


22
23
24
# File 'lib/falsify/models/address.rb', line 22

def country
  @country
end

#country_codeString (readonly)

The two-letter code (ISO 3166-1 format) for the country of the billing address.

Returns:

  • (String)


25
26
27
# File 'lib/falsify/models/address.rb', line 25

def country_code
  @country_code
end

#first_nameString

The first name of the person associated with the payment method.

Returns:

  • (String)


28
29
30
# File 'lib/falsify/models/address.rb', line 28

def first_name
  @first_name
end

#last_nameString

The last name of the person associated with the payment method.

Returns:

  • (String)


31
32
33
# File 'lib/falsify/models/address.rb', line 31

def last_name
  @last_name
end

#latitudeString

The latitude of the billing address.

Returns:

  • (String)


34
35
36
# File 'lib/falsify/models/address.rb', line 34

def latitude
  @latitude
end

#longitudeString

The longitude of the billing address.

Returns:

  • (String)


37
38
39
# File 'lib/falsify/models/address.rb', line 37

def longitude
  @longitude
end

#nameString

The full name of the person associated with the payment method.

Returns:

  • (String)


40
41
42
# File 'lib/falsify/models/address.rb', line 40

def name
  @name
end

#phoneString

The phone number at the billing address.

Returns:

  • (String)


43
44
45
# File 'lib/falsify/models/address.rb', line 43

def phone
  @phone
end

#provinceString

The name of the region (province, state, prefecture, ...) of the billing address.

Returns:

  • (String)


46
47
48
# File 'lib/falsify/models/address.rb', line 46

def province
  @province
end

#province_codeString

The two-letter abbreviation of the region of the billing address.

Returns:

  • (String)


49
50
51
# File 'lib/falsify/models/address.rb', line 49

def province_code
  @province_code
end

#zipString

The postal code (zip, postcode, Eircode, ...) of the billing address.

Returns:

  • (String)


52
53
54
# File 'lib/falsify/models/address.rb', line 52

def zip
  @zip
end