Class: Braintree::PaymentMethodNonceDetailsPayerInfo

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/payment_method_nonce_details_payer_info.rb

Overview

:nodoc:

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) ⇒ PaymentMethodNonceDetailsPayerInfo

Returns a new instance of PaymentMethodNonceDetailsPayerInfo.


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

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

Instance Attribute Details

#billing_agreement_idObject (readonly)

Returns the value of attribute billing_agreement_id.


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

def billing_agreement_id
  @billing_agreement_id
end

#country_codeObject (readonly)

Returns the value of attribute country_code.


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

def country_code
  @country_code
end

#emailObject (readonly)

Returns the value of attribute email.


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

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.


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

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.


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

def last_name
  @last_name
end

#payer_idObject (readonly)

Returns the value of attribute payer_id.


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

def payer_id
  @payer_id
end

Instance Method Details

#inspectObject


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/braintree/payment_method_nonce_details_payer_info.rb', line 16

def inspect
  attr_order = [
    :billing_agreement_id,
    :country_code,
    :email,
    :first_name,
    :last_name,
    :payer_id,
  ]

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