Class: GustoEmbedded::Models::Operations::SubmissionBlockers

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(blocker_type: nil, message: nil, options: nil, selected_option: nil) ⇒ SubmissionBlockers

Returns a new instance of SubmissionBlockers.



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

def initialize(blocker_type: nil, message: nil, options: nil, selected_option: nil)
  @blocker_type = blocker_type
  @message = message
  @options = options
  @selected_option = selected_option
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @blocker_type == other.blocker_type
  return false unless @message == other.message
  return false unless @options == other.options
  return false unless @selected_option == other.selected_option
  true
end