mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
50 lines
1.8 KiB
Ruby
50 lines
1.8 KiB
Ruby
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module PlexRubySDK
|
|
module Models
|
|
module Operations
|
|
|
|
|
|
class MediaProvider
|
|
extend T::Sig
|
|
include Crystalline::MetadataFields
|
|
|
|
|
|
field :feature, T.nilable(T::Array[Models::Operations::Feature]), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('Feature') } }
|
|
|
|
field :identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('identifier') } }
|
|
|
|
field :protocols, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('protocols') } }
|
|
|
|
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('title') } }
|
|
|
|
field :types, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('types') } }
|
|
|
|
|
|
sig { params(feature: T.nilable(T::Array[Models::Operations::Feature]), identifier: T.nilable(::String), protocols: T.nilable(::String), title: T.nilable(::String), types: T.nilable(::String)).void }
|
|
def initialize(feature: nil, identifier: nil, protocols: nil, title: nil, types: nil)
|
|
@feature = feature
|
|
@identifier = identifier
|
|
@protocols = protocols
|
|
@title = title
|
|
@types = types
|
|
end
|
|
|
|
def ==(other)
|
|
return false unless other.is_a? self.class
|
|
return false unless @feature == other.feature
|
|
return false unless @identifier == other.identifier
|
|
return false unless @protocols == other.protocols
|
|
return false unless @title == other.title
|
|
return false unless @types == other.types
|
|
true
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|