Class: Braintree::Transaction::UsBankAccountDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/transaction/us_bank_account_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) ⇒ UsBankAccountDetails

Returns a new instance of UsBankAccountDetails.



16
17
18
19
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 16

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
  @ach_mandate = attributes[:ach_mandate] ? AchMandate.new(attributes[:ach_mandate]) : nil
end

Instance Attribute Details

#account_holder_nameObject (readonly)

Returns the value of attribute account_holder_name.



6
7
8
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 6

def 
  @account_holder_name
end

#account_typeObject (readonly)

Returns the value of attribute account_type.



7
8
9
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 7

def 
  @account_type
end

#ach_mandateObject (readonly)

Returns the value of attribute ach_mandate.



8
9
10
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 8

def ach_mandate
  @ach_mandate
end

#bank_nameObject (readonly)

Returns the value of attribute bank_name.



9
10
11
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 9

def bank_name
  @bank_name
end

#global_idObject (readonly)

Returns the value of attribute global_id.



10
11
12
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 10

def global_id
  @global_id
end

#image_urlObject (readonly)

Returns the value of attribute image_url.



11
12
13
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 11

def image_url
  @image_url
end

#last_4Object (readonly)

Returns the value of attribute last_4.



12
13
14
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 12

def last_4
  @last_4
end

#routing_numberObject (readonly)

Returns the value of attribute routing_number.



13
14
15
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 13

def routing_number
  @routing_number
end

#tokenObject (readonly)

Returns the value of attribute token.



14
15
16
# File 'lib/braintree/transaction/us_bank_account_details.rb', line 14

def token
  @token
end