Class: Braintree::Transaction::AddressDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/transaction/address_details.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ShippingMethod

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ AddressDetails

Returns a new instance of AddressDetails.


31
32
33
# File 'lib/braintree/transaction/address_details.rb', line 31

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Instance Attribute Details

#companyObject (readonly)

Returns the value of attribute company.


15
16
17
# File 'lib/braintree/transaction/address_details.rb', line 15

def company
  @company
end

#country_code_alpha2Object (readonly)

Returns the value of attribute country_code_alpha2.


16
17
18
# File 'lib/braintree/transaction/address_details.rb', line 16

def country_code_alpha2
  @country_code_alpha2
end

#country_code_alpha3Object (readonly)

Returns the value of attribute country_code_alpha3.


17
18
19
# File 'lib/braintree/transaction/address_details.rb', line 17

def country_code_alpha3
  @country_code_alpha3
end

#country_code_numericObject (readonly)

Returns the value of attribute country_code_numeric.


18
19
20
# File 'lib/braintree/transaction/address_details.rb', line 18

def country_code_numeric
  @country_code_numeric
end

#country_nameObject (readonly)

Returns the value of attribute country_name.


19
20
21
# File 'lib/braintree/transaction/address_details.rb', line 19

def country_name
  @country_name
end

#extended_addressObject (readonly)

Returns the value of attribute extended_address.


20
21
22
# File 'lib/braintree/transaction/address_details.rb', line 20

def extended_address
  @extended_address
end

#first_nameObject (readonly)

Returns the value of attribute first_name.


21
22
23
# File 'lib/braintree/transaction/address_details.rb', line 21

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.


22
23
24
# File 'lib/braintree/transaction/address_details.rb', line 22

def id
  @id
end

#last_nameObject (readonly)

Returns the value of attribute last_name.


23
24
25
# File 'lib/braintree/transaction/address_details.rb', line 23

def last_name
  @last_name
end

#localityObject (readonly)

Returns the value of attribute locality.


24
25
26
# File 'lib/braintree/transaction/address_details.rb', line 24

def locality
  @locality
end

#phone_numberObject (readonly)

Returns the value of attribute phone_number.


25
26
27
# File 'lib/braintree/transaction/address_details.rb', line 25

def phone_number
  @phone_number
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.


26
27
28
# File 'lib/braintree/transaction/address_details.rb', line 26

def postal_code
  @postal_code
end

#regionObject (readonly)

Returns the value of attribute region.


27
28
29
# File 'lib/braintree/transaction/address_details.rb', line 27

def region
  @region
end

#shipping_methodObject (readonly)

Returns the value of attribute shipping_method.


28
29
30
# File 'lib/braintree/transaction/address_details.rb', line 28

def shipping_method
  @shipping_method
end

#street_addressObject (readonly)

Returns the value of attribute street_address.


29
30
31
# File 'lib/braintree/transaction/address_details.rb', line 29

def street_address
  @street_address
end