mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2026-04-18 21:43:32 +00:00
moved logger auth success to req,event classes
override to_s for req,event classes rename authenticate to identify in base class
This commit is contained in:
@@ -14,10 +14,15 @@ module OBSWS
|
||||
|
||||
def initialize(**kwargs)
|
||||
@base_client = Base.new(**kwargs)
|
||||
LOGGER.info("#{self} succesfully identified with server")
|
||||
@base_client.add_observer(self)
|
||||
@response = { requestId: 0 }
|
||||
end
|
||||
|
||||
def to_s
|
||||
"#{self.class.name.split("::").last(2).join("::")}"
|
||||
end
|
||||
|
||||
def run
|
||||
yield
|
||||
ensure
|
||||
|
||||
Reference in New Issue
Block a user