Class: Braintree::Transaction::UsBankAccountDetails
- Inherits:
-
Object
- Object
- Braintree::Transaction::UsBankAccountDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/us_bank_account_details.rb
Instance Attribute Summary collapse
-
#account_holder_name ⇒ Object
readonly
Returns the value of attribute account_holder_name.
-
#account_type ⇒ Object
readonly
Returns the value of attribute account_type.
-
#ach_mandate ⇒ Object
readonly
Returns the value of attribute ach_mandate.
-
#bank_name ⇒ Object
readonly
Returns the value of attribute bank_name.
-
#global_id ⇒ Object
readonly
Returns the value of attribute global_id.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#last_4 ⇒ Object
readonly
Returns the value of attribute last_4.
-
#routing_number ⇒ Object
readonly
Returns the value of attribute routing_number.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ UsBankAccountDetails
constructor
A new instance of UsBankAccountDetails.
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) ⇒ 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_name ⇒ Object (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 @account_holder_name end |
#account_type ⇒ Object (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 @account_type end |
#ach_mandate ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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_url ⇒ Object (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_4 ⇒ Object (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_number ⇒ Object (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 |
#token ⇒ Object (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 |