Class: GustoEmbedded::Models::Shared::EmbeddedTimeOffRequest

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

Overview

The representation of a time off request.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, status:, days:, employee:, employee_note: nil, employer_note: nil, policy_type: nil, policy_uuid: nil, initiator: nil, approver: nil) ⇒ EmbeddedTimeOffRequest

Returns a new instance of EmbeddedTimeOffRequest.



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

def initialize(uuid:, status:, days:, employee:, employee_note: nil, employer_note: nil, policy_type: nil, policy_uuid: nil, initiator: nil, approver: nil)
  @uuid = uuid
  @status = status
  @days = days
  @employee = employee
  @employee_note = employee_note
  @employer_note = employer_note
  @policy_type = policy_type
  @policy_uuid = policy_uuid
  @initiator = initiator
  @approver = approver
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/gusto_embedded/models/shared/embedded_time_off_request.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @status == other.status
  return false unless @days == other.days
  return false unless @employee == other.employee
  return false unless @employee_note == other.employee_note
  return false unless @employer_note == other.employer_note
  return false unless @policy_type == other.policy_type
  return false unless @policy_uuid == other.policy_uuid
  return false unless @initiator == other.initiator
  return false unless @approver == other.approver
  true
end