mirror of
https://github.com/LukeHagar/plexruby.git
synced 2025-12-06 20:57:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.6
This commit is contained in:
35
lib/plex_ruby_sdk/sdk_hooks/registration.rb
Normal file
35
lib/plex_ruby_sdk/sdk_hooks/registration.rb
Normal file
@@ -0,0 +1,35 @@
|
||||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
#
|
||||
# This file is only ever generated once on the first generation and then is free to be modified.
|
||||
# Any hooks you wish to add should be registered in the init_hooks method.
|
||||
#
|
||||
# Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance.
|
||||
#
|
||||
|
||||
require_relative './types'
|
||||
|
||||
require 'sorbet-runtime'
|
||||
|
||||
module PlexRubySDK
|
||||
module SDKHooks
|
||||
class Registration
|
||||
extend T::Sig
|
||||
|
||||
sig do
|
||||
params(
|
||||
hooks: Hooks
|
||||
).void
|
||||
end
|
||||
def self.init_hooks(hooks)
|
||||
# example_hook = ExampleHook.new
|
||||
|
||||
# hooks.register_sdk_init_hook example_hook
|
||||
# hooks.register_before_request_hook example_hook
|
||||
# hooks.register_after_error_hook example_hook
|
||||
# hooks.register_after_success_hook example_hook
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user