Class: GustoEmbedded::Models::Shared::Exclusions

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(external_id: nil, category: nil, message: nil, item_count: nil) ⇒ Exclusions

Returns a new instance of Exclusions.



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

def initialize(external_id: nil, category: nil, message: nil, item_count: nil)
  @external_id = external_id
  @category = category
  @message = message
  @item_count = item_count
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @external_id == other.external_id
  return false unless @category == other.category
  return false unless @message == other.message
  return false unless @item_count == other.item_count
  true
end