Class: StackOne::Models::Shared::HrisShift

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(approval_status: nil, break_duration: nil, breaks: nil, company_id: nil, created_at: nil, employee_id: nil, end_time: nil, id: nil, location_id: nil, remote_id: nil, start_time: nil, status: nil, updated_at: nil) ⇒ HrisShift

Returns a new instance of HrisShift.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/stack_one/models/shared/hrisshift.rb', line 43

def initialize(approval_status: nil, break_duration: nil, breaks: nil, company_id: nil, created_at: nil, employee_id: nil, end_time: nil, id: nil, location_id: nil, remote_id: nil, start_time: nil, status: nil, updated_at: nil)
  @approval_status = approval_status
  @break_duration = break_duration
  @breaks = breaks
  @company_id = company_id
  @created_at = created_at
  @employee_id = employee_id
  @end_time = end_time
  @id = id
  @location_id = location_id
  @remote_id = remote_id
  @start_time = start_time
  @status = status
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/stack_one/models/shared/hrisshift.rb', line 60

def ==(other)
  return false unless other.is_a? self.class
  return false unless @approval_status == other.approval_status
  return false unless @break_duration == other.break_duration
  return false unless @breaks == other.breaks
  return false unless @company_id == other.company_id
  return false unless @created_at == other.created_at
  return false unless @employee_id == other.employee_id
  return false unless @end_time == other.end_time
  return false unless @id == other.id
  return false unless @location_id == other.location_id
  return false unless @remote_id == other.remote_id
  return false unless @start_time == other.start_time
  return false unless @status == other.status
  return false unless @updated_at == other.updated_at
  true
end