Class: GustoEmbedded::Models::Shared::ReportTemplate

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(columns: nil, groupings: nil, company_uuid: nil, report_type: nil) ⇒ ReportTemplate

Returns a new instance of ReportTemplate.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/report_template.rb', line 25

def initialize(columns: nil, groupings: nil, company_uuid: nil, report_type: nil)
  @columns = columns
  @groupings = groupings
  @company_uuid = company_uuid
  @report_type = report_type
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/report_template.rb', line 33

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 @company_uuid == other.company_uuid
  return false unless @report_type == other.report_type
  true
end