Class: Moov::Models::Components::ProductOptionGroupValidationError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/productoptiongroupvalidationerror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name: nil, description: nil, min_select: nil, max_select: nil, options: nil) ⇒ ProductOptionGroupValidationError

Returns a new instance of ProductOptionGroupValidationError.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/productoptiongroupvalidationerror.rb', line 27

def initialize(name: nil, description: nil, min_select: nil, max_select: nil, options: nil)
  @name = name
  @description = description
  @min_select = min_select
  @max_select = max_select
  @options = options
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/productoptiongroupvalidationerror.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @description == other.description
  return false unless @min_select == other.min_select
  return false unless @max_select == other.max_select
  return false unless @options == other.options
  true
end