Class: Moov::Models::Components::ProductOptionValidationError

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/productoptionvalidationerror.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, price_modifier: nil, images: nil) ⇒ ProductOptionValidationError

Returns a new instance of ProductOptionValidationError.



25
26
27
28
29
30
# File 'lib/moov/models/components/productoptionvalidationerror.rb', line 25

def initialize(name: nil, description: nil, price_modifier: nil, images: nil)
  @name = name
  @description = description
  @price_modifier = price_modifier
  @images = images
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/productoptionvalidationerror.rb', line 33

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