Class: StackOne::Models::Shared::TimeEntries
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::TimeEntries
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/timeentries.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(break_duration: nil, created_at: nil, employee_id: nil, end_time: nil, hours_worked: nil, id: nil, labor_type: nil, location: nil, remote_employee_id: nil, remote_id: nil, start_time: nil, status: nil, unified_custom_fields: nil, updated_at: nil) ⇒ TimeEntries
constructor
A new instance of TimeEntries.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(break_duration: nil, created_at: nil, employee_id: nil, end_time: nil, hours_worked: nil, id: nil, labor_type: nil, location: nil, remote_employee_id: nil, remote_id: nil, start_time: nil, status: nil, unified_custom_fields: nil, updated_at: nil) ⇒ TimeEntries
Returns a new instance of TimeEntries.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/stack_one/models/shared/timeentries.rb', line 45 def initialize(break_duration: nil, created_at: nil, employee_id: nil, end_time: nil, hours_worked: nil, id: nil, labor_type: nil, location: nil, remote_employee_id: nil, remote_id: nil, start_time: nil, status: nil, unified_custom_fields: nil, updated_at: nil) @break_duration = break_duration @created_at = created_at @employee_id = employee_id @end_time = end_time @hours_worked = hours_worked @id = id @labor_type = labor_type @location = location @remote_employee_id = remote_employee_id @remote_id = remote_id @start_time = start_time @status = status @unified_custom_fields = unified_custom_fields @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/stack_one/models/shared/timeentries.rb', line 63 def ==(other) return false unless other.is_a? self.class return false unless @break_duration == other.break_duration 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 @hours_worked == other.hours_worked return false unless @id == other.id return false unless @labor_type == other.labor_type return false unless @location == other.location return false unless @remote_employee_id == other.remote_employee_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 @unified_custom_fields == other.unified_custom_fields return false unless @updated_at == other.updated_at true end |