Class: Braintree::PaymentMethodNonceDetails
- Inherits:
-
Object
- Object
- Braintree::PaymentMethodNonceDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/payment_method_nonce_details.rb
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#card_type ⇒ Object
readonly
Returns the value of attribute card_type.
-
#expiration_month ⇒ Object
readonly
Returns the value of attribute expiration_month.
-
#expiration_year ⇒ Object
readonly
Returns the value of attribute expiration_year.
-
#is_network_tokenized ⇒ Object
(also: #is_network_tokenized?)
readonly
Returns the value of attribute is_network_tokenized.
-
#last_two ⇒ Object
readonly
Returns the value of attribute last_two.
-
#payer_info ⇒ Object
readonly
Returns the value of attribute payer_info.
-
#sepa_direct_debit_account_nonce_details ⇒ Object
readonly
Returns the value of attribute sepa_direct_debit_account_nonce_details.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ PaymentMethodNonceDetails
constructor
A new instance of PaymentMethodNonceDetails.
- #inspect ⇒ Object
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) ⇒ PaymentMethodNonceDetails
Returns a new instance of PaymentMethodNonceDetails.
16 17 18 19 20 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 16 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? @payer_info = PaymentMethodNonceDetailsPayerInfo.new(attributes[:payer_info]) if attributes[:payer_info] @sepa_direct_debit_account_nonce_details = ::Braintree::SepaDirectDebitAccountNonceDetails.new(attributes) end |
Instance Attribute Details
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
5 6 7 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 5 def bin @bin end |
#card_type ⇒ Object (readonly)
Returns the value of attribute card_type.
6 7 8 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 6 def card_type @card_type end |
#expiration_month ⇒ Object (readonly)
Returns the value of attribute expiration_month.
7 8 9 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 7 def expiration_month @expiration_month end |
#expiration_year ⇒ Object (readonly)
Returns the value of attribute expiration_year.
8 9 10 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 8 def expiration_year @expiration_year end |
#is_network_tokenized ⇒ Object (readonly) Also known as: is_network_tokenized?
Returns the value of attribute is_network_tokenized.
9 10 11 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 9 def is_network_tokenized @is_network_tokenized end |
#last_two ⇒ Object (readonly)
Returns the value of attribute last_two.
10 11 12 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 10 def last_two @last_two end |
#payer_info ⇒ Object (readonly)
Returns the value of attribute payer_info.
11 12 13 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 11 def payer_info @payer_info end |
#sepa_direct_debit_account_nonce_details ⇒ Object (readonly)
Returns the value of attribute sepa_direct_debit_account_nonce_details.
12 13 14 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 12 def sepa_direct_debit_account_nonce_details @sepa_direct_debit_account_nonce_details end |
Instance Method Details
#inspect ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/braintree/payment_method_nonce_details.rb', line 22 def inspect attr_order = [ :bin, :card_type, :expiration_month, :expiration_year, :is_network_tokenized, :last_two, :payer_info, :sepa_direct_debit_account_nonce_details, ] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<PaymentMethodNonceDetails #{formatted_attrs.join(", ")}>" end |