Class: GustoEmbedded::Models::Shared::ContractorPaymentReceiptLicensee

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/contractor_payment_receipt_licensee.rb

Overview

The licensed payroll processor

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(name: nil, address: nil, city: nil, state: nil, postal_code: nil, phone_number: nil) ⇒ ContractorPaymentReceiptLicensee

Returns a new instance of ContractorPaymentReceiptLicensee.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/contractor_payment_receipt_licensee.rb', line 29

def initialize(name: nil, address: nil, city: nil, state: nil, postal_code: nil, phone_number: nil)
  @name = name
  @address = address
  @city = city
  @state = state
  @postal_code = postal_code
  @phone_number = phone_number
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/contractor_payment_receipt_licensee.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @address == other.address
  return false unless @city == other.city
  return false unless @state == other.state
  return false unless @postal_code == other.postal_code
  return false unless @phone_number == other.phone_number
  true
end