Class: StackOne::Models::Shared::HrisCreateTimeOffRequestDto
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::HrisCreateTimeOffRequestDto
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(approver_id: nil, comment: nil, end_date: nil, end_half_day: nil, passthrough: nil, reason: nil, start_date: nil, start_half_day: nil, status: nil, time_off_policy_id: nil, type: nil) ⇒ HrisCreateTimeOffRequestDto
constructor
A new instance of HrisCreateTimeOffRequestDto.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(approver_id: nil, comment: nil, end_date: nil, end_half_day: nil, passthrough: nil, reason: nil, start_date: nil, start_half_day: nil, status: nil, time_off_policy_id: nil, type: nil) ⇒ HrisCreateTimeOffRequestDto
Returns a new instance of HrisCreateTimeOffRequestDto.
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb', line 41 def initialize(approver_id: nil, comment: nil, end_date: nil, end_half_day: nil, passthrough: nil, reason: nil, start_date: nil, start_half_day: nil, status: nil, time_off_policy_id: nil, type: nil) @approver_id = approver_id @comment = comment @end_date = end_date @end_half_day = end_half_day @passthrough = passthrough @reason = reason @start_date = start_date @start_half_day = start_half_day @status = status @time_off_policy_id = time_off_policy_id @type = type end |
Instance Method Details
#==(other) ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb', line 56 def ==(other) return false unless other.is_a? self.class return false unless @approver_id == other.approver_id return false unless @comment == other.comment return false unless @end_date == other.end_date return false unless @end_half_day == other.end_half_day return false unless @passthrough == other.passthrough return false unless @reason == other.reason return false unless @start_date == other.start_date return false unless @start_half_day == other.start_half_day return false unless @status == other.status return false unless @time_off_policy_id == other.time_off_policy_id return false unless @type == other.type true end |