Class: GustoEmbedded::Models::Shared::CreateReportBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CreateReportBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/create_report_body.rb
Overview
Request body for creating a custom report.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(columns:, groupings:, file_type:, custom_name: nil, start_date: nil, end_date: nil, dismissed_start_date: nil, dismissed_end_date: nil, payment_method: nil, employment_type: nil, employment_status: nil, department_uuids: nil, work_address_uuids: nil, with_totals: false, employee_uuids: nil) ⇒ CreateReportBody
constructor
A new instance of CreateReportBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(columns:, groupings:, file_type:, custom_name: nil, start_date: nil, end_date: nil, dismissed_start_date: nil, dismissed_end_date: nil, payment_method: nil, employment_type: nil, employment_status: nil, department_uuids: nil, work_address_uuids: nil, with_totals: false, employee_uuids: nil) ⇒ CreateReportBody
Returns a new instance of CreateReportBody.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/gusto_embedded/models/shared/create_report_body.rb', line 47 def initialize(columns:, groupings:, file_type:, custom_name: nil, start_date: nil, end_date: nil, dismissed_start_date: nil, dismissed_end_date: nil, payment_method: nil, employment_type: nil, employment_status: nil, department_uuids: nil, work_address_uuids: nil, with_totals: false, employee_uuids: nil) @columns = columns @groupings = groupings @file_type = file_type @custom_name = custom_name @start_date = start_date @end_date = end_date @dismissed_start_date = dismissed_start_date @dismissed_end_date = dismissed_end_date @payment_method = payment_method @employment_type = employment_type @employment_status = employment_status @department_uuids = department_uuids @work_address_uuids = work_address_uuids @with_totals = with_totals @employee_uuids = employee_uuids end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/gusto_embedded/models/shared/create_report_body.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @columns == other.columns return false unless @groupings == other.groupings return false unless @file_type == other.file_type return false unless @custom_name == other.custom_name return false unless @start_date == other.start_date return false unless @end_date == other.end_date return false unless @dismissed_start_date == other.dismissed_start_date return false unless @dismissed_end_date == other.dismissed_end_date return false unless @payment_method == other.payment_method return false unless @employment_type == other.employment_type return false unless @employment_status == other.employment_status return false unless @department_uuids == other.department_uuids return false unless @work_address_uuids == other.work_address_uuids return false unless @with_totals == other.with_totals return false unless @employee_uuids == other.employee_uuids true end |