mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 12:47:44 +00:00
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module PlexRubySDK
|
|
module Operations
|
|
|
|
# The filter query string for similar items.
|
|
class Genre < ::Crystalline::FieldAugmented
|
|
extend T::Sig
|
|
|
|
|
|
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
|
|
|
|
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
|
|
# The genre name of this media-item
|
|
#
|
|
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
|
|
|
|
|
|
sig { params(filter: ::String, id: ::Integer, tag: ::String).void }
|
|
def initialize(filter: nil, id: nil, tag: nil)
|
|
@filter = filter
|
|
@id = id
|
|
@tag = tag
|
|
end
|
|
|
|
def ==(other)
|
|
return false unless other.is_a? self.class
|
|
return false unless @filter == other.filter
|
|
return false unless @id == other.id
|
|
return false unless @tag == other.tag
|
|
true
|
|
end
|
|
end
|
|
end
|
|
end
|