Class: AuthorizeNet::CIM::CustomerProfile
- Inherits:
-
AuthorizeNet::Customer
- Object
- AuthorizeNet::Customer
- AuthorizeNet::CIM::CustomerProfile
- Includes:
- Model
- Defined in:
- lib/authorize_net/cim/customer_profile.rb
Overview
Models a customer profile.
Instance Attribute Summary collapse
-
#customer_profile_id ⇒ Object
Returns the value of attribute customer_profile_id.
-
#payment_profiles ⇒ Object
Returns the value of attribute payment_profiles.
Attributes inherited from AuthorizeNet::Customer
#address, #description, #email, #fax, #id, #ip, #phone
Instance Method Summary collapse
Methods included from Model
Instance Attribute Details
#customer_profile_id ⇒ Object
Returns the value of attribute customer_profile_id.
8 9 10 |
# File 'lib/authorize_net/cim/customer_profile.rb', line 8 def customer_profile_id @customer_profile_id end |
#payment_profiles ⇒ Object
Returns the value of attribute payment_profiles.
8 9 10 |
# File 'lib/authorize_net/cim/customer_profile.rb', line 8 def payment_profiles @payment_profiles end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 |
# File 'lib/authorize_net/cim/customer_profile.rb', line 10 def to_hash hash = super hash.delete_if {|k, v| v.nil?} hash[:payment_profiles] = handle_multivalue_hashing(@payment_profiles) hash end |