Exception: Clerk::Models::Errors::ClerkErrors
- Inherits:
-
StandardError
- Object
- StandardError
- Clerk::Models::Errors::ClerkErrors
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/errors/clerkerrors.rb
Overview
Request was not successful
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(errors:, meta: nil, raw_response: nil) ⇒ ClerkErrors
constructor
A new instance of ClerkErrors.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(errors:, meta: nil, raw_response: nil) ⇒ ClerkErrors
Returns a new instance of ClerkErrors.
23 24 25 26 27 |
# File 'lib/clerk/models/errors/clerkerrors.rb', line 23 def initialize(errors:, meta: nil, raw_response: nil) @errors = errors @meta = @raw_response = raw_response end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/clerk/models/errors/clerkerrors.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @errors == other.errors return false unless @meta == other. return false unless @raw_response == other.raw_response true end |