Class: Braintree::Transaction::AddressDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::AddressDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/address_details.rb
Defined Under Namespace
Modules: ShippingMethod
Instance Attribute Summary collapse
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#country_code_alpha2 ⇒ Object
readonly
Returns the value of attribute country_code_alpha2.
-
#country_code_alpha3 ⇒ Object
readonly
Returns the value of attribute country_code_alpha3.
-
#country_code_numeric ⇒ Object
readonly
Returns the value of attribute country_code_numeric.
-
#country_name ⇒ Object
readonly
Returns the value of attribute country_name.
-
#extended_address ⇒ Object
readonly
Returns the value of attribute extended_address.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#international_phone ⇒ Object
readonly
Returns the value of attribute international_phone.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#locality ⇒ Object
readonly
Returns the value of attribute locality.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#shipping_method ⇒ Object
readonly
Returns the value of attribute shipping_method.
-
#street_address ⇒ Object
readonly
Returns the value of attribute street_address.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ AddressDetails
constructor
A new instance of AddressDetails.
Methods included from BaseModule
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
#company ⇒ Object (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_alpha2 ⇒ Object (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_alpha3 ⇒ Object (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_numeric ⇒ Object (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_name ⇒ Object (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_address ⇒ Object (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_name ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
23 24 25 |
# File 'lib/braintree/transaction/address_details.rb', line 23 def id @id end |
#international_phone ⇒ Object (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_name ⇒ Object (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 |
#locality ⇒ Object (readonly)
Returns the value of attribute locality.
26 27 28 |
# File 'lib/braintree/transaction/address_details.rb', line 26 def locality @locality end |
#phone_number ⇒ Object (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_code ⇒ Object (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 |
#region ⇒ Object (readonly)
Returns the value of attribute region.
29 30 31 |
# File 'lib/braintree/transaction/address_details.rb', line 29 def region @region end |
#shipping_method ⇒ Object (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_address ⇒ Object (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 |