Class: GustoEmbedded::Models::Operations::PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(employee_uuid:, policy_uuid:, start_date:, end_date:, days:, employer_note: nil, approver_uuid: nil) ⇒ PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsRequestBody

Returns a new instance of PostV1CompaniesCompanyUuidTimeOffAdminApprovedRequestsRequestBody.



31
32
33
34
35
36
37
38
39
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_time_off_admin_approved_requests_requestbody.rb', line 31

def initialize(employee_uuid:, policy_uuid:, start_date:, end_date:, days:, employer_note: nil, approver_uuid: nil)
  @employee_uuid = employee_uuid
  @policy_uuid = policy_uuid
  @start_date = start_date
  @end_date = end_date
  @days = days
  @employer_note = employer_note
  @approver_uuid = approver_uuid
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/operations/post_v1_companies_company_uuid_time_off_admin_approved_requests_requestbody.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @employee_uuid == other.employee_uuid
  return false unless @policy_uuid == other.policy_uuid
  return false unless @start_date == other.start_date
  return false unless @end_date == other.end_date
  return false unless @days == other.days
  return false unless @employer_note == other.employer_note
  return false unless @approver_uuid == other.approver_uuid
  true
end