Class: Moov::Models::Components::PatchAccountCustomerSupport
- Inherits:
-
Object
- Object
- Moov::Models::Components::PatchAccountCustomerSupport
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/patchaccount_customersupport.rb
Overview
User-provided information that can be displayed on credit card transactions for customers to use when contacting a customer support team. This data is only allowed on a business account.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(phone: nil, email: nil, address: nil, website: nil) ⇒ PatchAccountCustomerSupport
constructor
A new instance of PatchAccountCustomerSupport.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(phone: nil, email: nil, address: nil, website: nil) ⇒ PatchAccountCustomerSupport
Returns a new instance of PatchAccountCustomerSupport.
27 28 29 30 31 32 |
# File 'lib/moov/models/components/patchaccount_customersupport.rb', line 27 def initialize(phone: nil, email: nil, address: nil, website: nil) @phone = phone @email = email @address = address @website = website end |
Instance Method Details
#==(other) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/moov/models/components/patchaccount_customersupport.rb', line 35 def ==(other) return false unless other.is_a? self.class return false unless @phone == other.phone return false unless @email == other.email return false unless @address == other.address return false unless @website == other.website true end |