Class: Kombo::Models::Shared::GetHrisEmployeesFormPositiveResponseOptionsInline2

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, entries:) ⇒ GetHrisEmployeesFormPositiveResponseOptionsInline2

Returns a new instance of GetHrisEmployeesFormPositiveResponseOptionsInline2.



21
22
23
24
25
26
27
# File 'lib/kombo/models/shared/gethrisemployeesformpositiveresponse_options_inline_2.rb', line 21

def initialize(type:, entries:)
  unless type == 'inline'
    raise ArgumentError, 'Invalid value for type'
  end
  @type = 'inline'
  @entries = entries
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
# File 'lib/kombo/models/shared/gethrisemployeesformpositiveresponse_options_inline_2.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @entries == other.entries
  true
end