mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 20:57:45 +00:00
38 lines
998 B
Ruby
38 lines
998 B
Ruby
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
# typed: true
|
|
# frozen_string_literal: true
|
|
|
|
|
|
module PlexRubySDK
|
|
module Models
|
|
module Operations
|
|
|
|
|
|
class GetFileHashRequest
|
|
extend T::Sig
|
|
include Crystalline::MetadataFields
|
|
|
|
# This is the path to the local file, must be prefixed by `file://`
|
|
field :url, ::String, { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
|
# Item type
|
|
field :type, T.nilable(::Float), { 'query_param': { 'field_name': 'type', 'style': 'form', 'explode': true } }
|
|
|
|
|
|
sig { params(url: ::String, type: T.nilable(::Float)).void }
|
|
def initialize(url: nil, type: nil)
|
|
@url = url
|
|
@type = type
|
|
end
|
|
|
|
def ==(other)
|
|
return false unless other.is_a? self.class
|
|
return false unless @url == other.url
|
|
return false unless @type == other.type
|
|
true
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|