Class: GustoEmbedded::Models::Operations::PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody

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_requests_preview_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:, request_uuid: nil) ⇒ PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody

Returns a new instance of PostV1CompaniesCompanyUuidTimeOffRequestsPreviewRequestBody.



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

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

Instance Method Details

#==(other) ⇒ Object



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

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 @request_uuid == other.request_uuid
  true
end