Class: Braintree::Transaction::AddressDetails

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

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.



33
34
35
# File 'lib/braintree/transaction/address_details.rb', line 33

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

Instance Attribute Details

#companyObject (readonly)

Returns the value of attribute company.



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

def company
  @company
end

#country_code_alpha2Object (readonly)

Returns the value of attribute country_code_alpha2.



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

def country_code_alpha2
  @country_code_alpha2
end

#country_code_alpha3Object (readonly)

Returns the value of attribute country_code_alpha3.



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

def country_code_alpha3
  @country_code_alpha3
end

#country_code_numericObject (readonly)

Returns the value of attribute country_code_numeric.



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

def country_code_numeric
  @country_code_numeric
end

#country_nameObject (readonly)

Returns the value of attribute country_name.



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

def country_name
  @country_name
end

#extended_addressObject (readonly)

Returns the value of attribute extended_address.



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

def extended_address
  @extended_address
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#international_phoneObject (readonly)

Returns the value of attribute international_phone.



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

def international_phone
  @international_phone
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#localityObject (readonly)

Returns the value of attribute locality.



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

def locality
  @locality
end

#phone_numberObject (readonly)

Returns the value of attribute phone_number.



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

def phone_number
  @phone_number
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



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

def postal_code
  @postal_code
end

#regionObject (readonly)

Returns the value of attribute region.



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

def region
  @region
end

#shipping_methodObject (readonly)

Returns the value of attribute shipping_method.



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

def shipping_method
  @shipping_method
end

#street_addressObject (readonly)

Returns the value of attribute street_address.



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

def street_address
  @street_address
end