Class: KintsugiSDK::Models::Shared::CustomerBaseBase
- Inherits:
-
Object
- Object
- KintsugiSDK::Models::Shared::CustomerBaseBase
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kintsugi_sdk/models/shared/customerbasebase.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(organization_id:, phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, state: nil, postal_code: nil, country: nil, full_address: nil, name: nil, external_id: nil, status: nil, email: nil, address_status: nil, source: nil, registration_number: nil, connection_id: nil, enriched_fields: nil, is_test_data: false) ⇒ CustomerBaseBase
constructor
A new instance of CustomerBaseBase.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(organization_id:, phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, state: nil, postal_code: nil, country: nil, full_address: nil, name: nil, external_id: nil, status: nil, email: nil, address_status: nil, source: nil, registration_number: nil, connection_id: nil, enriched_fields: nil, is_test_data: false) ⇒ CustomerBaseBase
Returns a new instance of CustomerBaseBase.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/kintsugi_sdk/models/shared/customerbasebase.rb', line 58 def initialize(organization_id:, phone: nil, street_1: nil, street_2: nil, city: nil, county: nil, state: nil, postal_code: nil, country: nil, full_address: nil, name: nil, external_id: nil, status: nil, email: nil, address_status: nil, source: nil, registration_number: nil, connection_id: nil, enriched_fields: nil, is_test_data: false) @organization_id = organization_id @phone = phone @street_1 = street_1 @street_2 = street_2 @city = city @county = county @state = state @postal_code = postal_code @country = country @full_address = full_address @name = name @external_id = external_id @status = status @email = email @address_status = address_status @source = source @registration_number = registration_number @connection_id = connection_id @enriched_fields = enriched_fields @is_test_data = is_test_data end |
Instance Method Details
#==(other) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/kintsugi_sdk/models/shared/customerbasebase.rb', line 82 def ==(other) return false unless other.is_a? self.class return false unless @organization_id == other.organization_id return false unless @phone == other.phone return false unless @street_1 == other.street_1 return false unless @street_2 == other.street_2 return false unless @city == other.city return false unless @county == other.county return false unless @state == other.state return false unless @postal_code == other.postal_code return false unless @country == other.country return false unless @full_address == other.full_address return false unless @name == other.name return false unless @external_id == other.external_id return false unless @status == other.status return false unless @email == other.email return false unless @address_status == other.address_status return false unless @source == other.source return false unless @registration_number == other.registration_number return false unless @connection_id == other.connection_id return false unless @enriched_fields == other.enriched_fields return false unless @is_test_data == other.is_test_data true end |