mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-07 20:57:44 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.4
This commit is contained in:
38
lib/plex_ruby_sdk/models/errors/apierror.rb
Normal file
38
lib/plex_ruby_sdk/models/errors/apierror.rb
Normal file
@@ -0,0 +1,38 @@
|
||||
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
module PlexRubySDK
|
||||
module Models
|
||||
module Errors
|
||||
|
||||
class APIError < StandardError
|
||||
include Crystalline::MetadataFields
|
||||
extend T::Sig
|
||||
|
||||
|
||||
field :body, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('body') } }
|
||||
field :raw_response, T.nilable(Faraday::Response), {}
|
||||
field :status_code, T.nilable(::Integer), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('status_code') } }
|
||||
|
||||
|
||||
sig { params(status_code: ::Integer, body: ::String, raw_response: Faraday::Response).void }
|
||||
def initialize(status_code:, body:, raw_response:)
|
||||
@status_code = status_code
|
||||
@body = body
|
||||
@raw_response = raw_response
|
||||
end
|
||||
|
||||
def ==(other)
|
||||
return false unless other.is_a? self.class
|
||||
return false unless @msg == other.msg
|
||||
return false unless @status_code == other.status_code
|
||||
return false unless @body == other.body
|
||||
return false unless @raw_response == other.raw_response
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user