Class: Braintree::Transaction::AddressDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::AddressDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/address_details.rb
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) company
readonly
Returns the value of attribute company.
-
- (Object) country_code_alpha2
readonly
Returns the value of attribute country_code_alpha2.
-
- (Object) country_code_alpha3
readonly
Returns the value of attribute country_code_alpha3.
-
- (Object) country_code_numeric
readonly
Returns the value of attribute country_code_numeric.
-
- (Object) country_name
readonly
Returns the value of attribute country_name.
-
- (Object) extended_address
readonly
Returns the value of attribute extended_address.
-
- (Object) first_name
readonly
Returns the value of attribute first_name.
-
- (Object) id
readonly
Returns the value of attribute id.
-
- (Object) last_name
readonly
Returns the value of attribute last_name.
-
- (Object) locality
readonly
Returns the value of attribute locality.
-
- (Object) postal_code
readonly
Returns the value of attribute postal_code.
-
- (Object) region
readonly
Returns the value of attribute region.
-
- (Object) street_address
readonly
Returns the value of attribute street_address.
Instance Method Summary (collapse)
-
- (AddressDetails) initialize(attributes)
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
- (AddressDetails) initialize(attributes)
A new instance of AddressDetails
11 12 13 |
# File 'lib/braintree/transaction/address_details.rb', line 11 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
- (Object) company (readonly)
Returns the value of attribute company
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def company @company end |
- (Object) country_code_alpha2 (readonly)
Returns the value of attribute country_code_alpha2
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def country_code_alpha2 @country_code_alpha2 end |
- (Object) country_code_alpha3 (readonly)
Returns the value of attribute country_code_alpha3
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def country_code_alpha3 @country_code_alpha3 end |
- (Object) country_code_numeric (readonly)
Returns the value of attribute country_code_numeric
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def country_code_numeric @country_code_numeric end |
- (Object) country_name (readonly)
Returns the value of attribute country_name
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def country_name @country_name end |
- (Object) extended_address (readonly)
Returns the value of attribute extended_address
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def extended_address @extended_address end |
- (Object) first_name (readonly)
Returns the value of attribute first_name
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def first_name @first_name end |
- (Object) id (readonly)
Returns the value of attribute id
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def id @id end |
- (Object) last_name (readonly)
Returns the value of attribute last_name
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def last_name @last_name end |
- (Object) locality (readonly)
Returns the value of attribute locality
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def locality @locality end |
- (Object) postal_code (readonly)
Returns the value of attribute postal_code
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def postal_code @postal_code end |
- (Object) region (readonly)
Returns the value of attribute region
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def region @region end |
- (Object) street_address (readonly)
Returns the value of attribute street_address
6 7 8 |
# File 'lib/braintree/transaction/address_details.rb', line 6 def street_address @street_address end |