# File lib/braintree/merchant_account.rb, line 36 def initialize(gateway, attributes) # :nodoc @gateway = gateway set_instance_variables_from_hash(attributes) @individual_details = IndividualDetails.new(@individual) @business_details = BusinessDetails.new(@business) @funding_details = FundingDetails.new(@funding) @master_merchant_account = MerchantAccount._new(@gateway, attributes.delete(:master_merchant_account)) if attributes[:master_merchant_account] end