Files
plexruby/lib/plex_ruby_sdk/models/operations/writer.rb

50 lines
1.8 KiB
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
# typed: true
# frozen_string_literal: true
module PlexRubySDK
module Models
module Operations
class Writer
extend T::Sig
include Crystalline::MetadataFields
# The filter string used to query this writer.
field :filter, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('filter') } }
# Unique identifier for the writer.
field :id, ::Integer, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('id') } }
# The role of Writer
field :tag, ::String, { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tag') } }
# A 24-character hexadecimal unique key associated with the writers tag, used for internal identification.
field :tag_key, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('tagKey') } }
# The absolute URL of the thumbnail image for the writer.
field :thumb, T.nilable(::String), { 'format_json': { 'letter_case': ::PlexRubySDK::Utils.field_name('thumb') } }
sig { params(filter: ::String, id: ::Integer, tag: ::String, tag_key: T.nilable(::String), thumb: T.nilable(::String)).void }
def initialize(filter: nil, id: nil, tag: nil, tag_key: nil, thumb: nil)
@filter = filter
@id = id
@tag = tag
@tag_key = tag_key
@thumb = thumb
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
return false unless @tag_key == other.tag_key
return false unless @thumb == other.thumb
true
end
end
end
end
end