Class: Braintree::SepaDirectDebitAccountNonceDetails

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

Returns a new instance of SepaDirectDebitAccountNonceDetails.



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

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Instance Attribute Details

#bank_reference_tokenObject (readonly)

Returns the value of attribute bank_reference_token.



5
6
7
# File 'lib/braintree/sepa_direct_debit_account_nonce_details.rb', line 5

def bank_reference_token
  @bank_reference_token
end

#last_4Object (readonly)

Returns the value of attribute last_4.



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

def last_4
  @last_4
end

#mandate_typeObject (readonly)

Returns the value of attribute mandate_type.



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

def mandate_type
  @mandate_type
end

#merchant_or_partner_customer_idObject (readonly)

Returns the value of attribute merchant_or_partner_customer_id.



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

def merchant_or_partner_customer_id
  @merchant_or_partner_customer_id
end

Instance Method Details

#inspectObject



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/braintree/sepa_direct_debit_account_nonce_details.rb', line 14

def inspect
  attr_order = [
    :bank_reference_token,
    :last_4,
    :mandate_type,
    :merchant_or_partner_customer_id,
  ]

  formatted_attrs = attr_order.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end
  "#<SepaDirectDebitAccountNonceDetails#{formatted_attrs.join(", ")}>"
end