Class: Braintree::MerchantAccount::AddressDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/merchant_account/address_details.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) ⇒ 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

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

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