Class: Braintree::MerchantAccount::AddressDetails
- Inherits:
-
Object
- Object
- Braintree::MerchantAccount::AddressDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/merchant_account/address_details.rb
Instance Attribute Summary collapse
-
#locality ⇒ Object
readonly
Returns the value of attribute locality.
-
#postal_code ⇒ Object
readonly
Returns the value of attribute postal_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#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.
11 12 13 |
# File 'lib/braintree/merchant_account/address_details.rb', line 11 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#locality ⇒ Object (readonly)
Returns the value of attribute locality.
6 7 8 |
# File 'lib/braintree/merchant_account/address_details.rb', line 6 def locality @locality end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
7 8 9 |
# File 'lib/braintree/merchant_account/address_details.rb', line 7 def postal_code @postal_code end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
8 9 10 |
# File 'lib/braintree/merchant_account/address_details.rb', line 8 def region @region end |
#street_address ⇒ Object (readonly)
Returns the value of attribute street_address.
9 10 11 |
# File 'lib/braintree/merchant_account/address_details.rb', line 9 def street_address @street_address end |