Class: Braintree::PaymentMethodNonceDetailsPayerInfo
- Inherits:
-
Object
- Object
- Braintree::PaymentMethodNonceDetailsPayerInfo
- Includes:
- BaseModule
- Defined in:
- lib/braintree/payment_method_nonce_details_payer_info.rb
Instance Attribute Summary collapse
-
#billing_agreement_id ⇒ Object
readonly
Returns the value of attribute billing_agreement_id.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#payer_id ⇒ Object
readonly
Returns the value of attribute payer_id.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ PaymentMethodNonceDetailsPayerInfo
constructor
A new instance of PaymentMethodNonceDetailsPayerInfo.
- #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) ⇒ 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_id ⇒ Object (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_code ⇒ Object (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 |
#email ⇒ Object (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_name ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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
#inspect ⇒ Object
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 |