Class: Kombo::Models::Shared::GetHrisTimesheetsPositiveResponseResult

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, employee_id:, changed_at:, remote_id: nil, started_at: nil, ended_at: nil, timezone: nil, payable_hours: nil, unpaid_break_minutes: nil, approval_status: nil, approved_at: nil, comment: nil, custom_fields: nil, remote_deleted_at: nil, breaks: nil) ⇒ GetHrisTimesheetsPositiveResponseResult

Returns a new instance of GetHrisTimesheetsPositiveResponseResult.



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/kombo/models/shared/gethristimesheetspositiveresponse_result.rb', line 52

def initialize(id:, employee_id:, changed_at:, remote_id: nil, started_at: nil, ended_at: nil, timezone: nil, payable_hours: nil, unpaid_break_minutes: nil, approval_status: nil, approved_at: nil, comment: nil, custom_fields: nil, remote_deleted_at: nil, breaks: nil)
  @id = id
  @employee_id = employee_id
  @changed_at = changed_at
  @remote_id = remote_id
  @started_at = started_at
  @ended_at = ended_at
  @timezone = timezone
  @payable_hours = payable_hours
  @unpaid_break_minutes = unpaid_break_minutes
  @approval_status = approval_status
  @approved_at = approved_at
  @comment = comment
  @custom_fields = custom_fields
  @remote_deleted_at = remote_deleted_at
  @breaks = breaks
end

Instance Method Details

#==(other) ⇒ Object



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/kombo/models/shared/gethristimesheetspositiveresponse_result.rb', line 71

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @employee_id == other.employee_id
  return false unless @changed_at == other.changed_at
  return false unless @remote_id == other.remote_id
  return false unless @started_at == other.started_at
  return false unless @ended_at == other.ended_at
  return false unless @timezone == other.timezone
  return false unless @payable_hours == other.payable_hours
  return false unless @unpaid_break_minutes == other.unpaid_break_minutes
  return false unless @approval_status == other.approval_status
  return false unless @approved_at == other.approved_at
  return false unless @comment == other.comment
  return false unless @custom_fields == other.custom_fields
  return false unless @remote_deleted_at == other.remote_deleted_at
  return false unless @breaks == other.breaks
  true
end