Class: GustoEmbedded::Models::Shared::ContractorPayments
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorPayments
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_payments.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contractor_uuid: nil, contractor_first_name: nil, contractor_last_name: nil, contractor_business_name: nil, contractor_type: nil, payment_method: nil, wage: nil, bonus: nil, reimbursement: nil) ⇒ ContractorPayments
constructor
A new instance of ContractorPayments.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contractor_uuid: nil, contractor_first_name: nil, contractor_last_name: nil, contractor_business_name: nil, contractor_type: nil, payment_method: nil, wage: nil, bonus: nil, reimbursement: nil) ⇒ ContractorPayments
Returns a new instance of ContractorPayments.
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/gusto_embedded/models/shared/contractor_payments.rb', line 37 def initialize(contractor_uuid: nil, contractor_first_name: nil, contractor_last_name: nil, contractor_business_name: nil, contractor_type: nil, payment_method: nil, wage: nil, bonus: nil, reimbursement: nil) @contractor_uuid = contractor_uuid @contractor_first_name = contractor_first_name @contractor_last_name = contractor_last_name @contractor_business_name = contractor_business_name @contractor_type = contractor_type @payment_method = payment_method @wage = wage @bonus = bonus @reimbursement = reimbursement end |
Instance Method Details
#==(other) ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/gusto_embedded/models/shared/contractor_payments.rb', line 50 def ==(other) return false unless other.is_a? self.class return false unless @contractor_uuid == other.contractor_uuid return false unless @contractor_first_name == other.contractor_first_name return false unless @contractor_last_name == other.contractor_last_name return false unless @contractor_business_name == other.contractor_business_name return false unless @contractor_type == other.contractor_type return false unless @payment_method == other.payment_method return false unless @wage == other.wage return false unless @bonus == other.bonus return false unless @reimbursement == other.reimbursement true end |