Class: XapiScraper::Models::Components::ValidationError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(loc:, msg:, type:, input: nil, ctx: nil) ⇒ ValidationError

Returns a new instance of ValidationError.



46
47
48
49
50
51
52
# File 'lib/xapi_scraper/models/components/validationerror.rb', line 46

def initialize(loc:, msg:, type:, input: nil, ctx: nil)
  @loc = loc
  @msg = msg
  @type = type
  @input = input
  @ctx = ctx
end

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
# File 'lib/xapi_scraper/models/components/validationerror.rb', line 55

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @loc == other.loc
  return false unless @msg == other.msg
  return false unless @type == other.type
  return false unless @input == other.input
  return false unless @ctx == other.ctx
  true
end