Exception: XapiScraper::Models::Errors::HTTPValidationError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(detail: nil, raw_response: nil) ⇒ HTTPValidationError

Returns a new instance of HTTPValidationError.



33
34
35
36
# File 'lib/xapi_scraper/models/errors/httpvalidationerror.rb', line 33

def initialize(detail: nil, raw_response: nil)
  @detail = detail
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
# File 'lib/xapi_scraper/models/errors/httpvalidationerror.rb', line 39

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