Class: Braintree::Transaction::PaymentReceipt::MerchantAddress

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

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) ⇒ 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

#localityObject (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

#phoneObject (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_codeObject (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

#regionObject (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_addressObject (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