Class: Braintree::Transaction::PaymentReceipt::MerchantAddress
- Inherits:
-
Object
- Object
- Braintree::Transaction::PaymentReceipt::MerchantAddress
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/payment_receipt/merchant_address.rb
Instance Attribute Summary collapse
-
#locality ⇒ Object
readonly
Returns the value of attribute locality.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#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) ⇒ MerchantAddress
constructor
A new instance of MerchantAddress.
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) ⇒ MerchantAddress
Returns a new instance of MerchantAddress.
13 14 15 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 13 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.
7 8 9 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 7 def locality @locality end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
8 9 10 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 8 def phone @phone end |
#postal_code ⇒ Object (readonly)
Returns the value of attribute postal_code.
9 10 11 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 9 def postal_code @postal_code end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
10 11 12 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 10 def region @region end |
#street_address ⇒ Object (readonly)
Returns the value of attribute street_address.
11 12 13 |
# File 'lib/braintree/transaction/payment_receipt/merchant_address.rb', line 11 def street_address @street_address end |