Class: Braintree::MerchantAccount::BusinessDetails
- Inherits:
-
Object
- Object
- Braintree::MerchantAccount::BusinessDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/merchant_account/business_details.rb
Instance Attribute Summary collapse
-
#address_details ⇒ Object
readonly
Returns the value of attribute address_details.
-
#dba_name ⇒ Object
readonly
Returns the value of attribute dba_name.
-
#legal_name ⇒ Object
readonly
Returns the value of attribute legal_name.
-
#tax_id ⇒ Object
readonly
Returns the value of attribute tax_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ BusinessDetails
constructor
A new instance of BusinessDetails.
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) ⇒ BusinessDetails
Returns a new instance of BusinessDetails.
11 12 13 14 |
# File 'lib/braintree/merchant_account/business_details.rb', line 11 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? @address_details = MerchantAccount::AddressDetails.new(@address) end |
Instance Attribute Details
#address_details ⇒ Object (readonly)
Returns the value of attribute address_details.
6 7 8 |
# File 'lib/braintree/merchant_account/business_details.rb', line 6 def address_details @address_details end |
#dba_name ⇒ Object (readonly)
Returns the value of attribute dba_name.
7 8 9 |
# File 'lib/braintree/merchant_account/business_details.rb', line 7 def dba_name @dba_name end |
#legal_name ⇒ Object (readonly)
Returns the value of attribute legal_name.
8 9 10 |
# File 'lib/braintree/merchant_account/business_details.rb', line 8 def legal_name @legal_name end |
#tax_id ⇒ Object (readonly)
Returns the value of attribute tax_id.
9 10 11 |
# File 'lib/braintree/merchant_account/business_details.rb', line 9 def tax_id @tax_id end |