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:
onyx-and-iris
2022-10-25 00:03:43 +01:00
parent 9842bed8b6
commit b33fe94cee
3 changed files with 13 additions and 8 deletions

View File

@@ -77,9 +77,14 @@ module OBSWS
def initialize(**kwargs)
kwargs[:subs] = SUBS.low_volume
@base_client = Base.new(**kwargs)
LOGGER.info("#{self} succesfully identified with server")
@base_client.add_observer(self)
end
def to_s
"#{self.class.name.split("::").last(2).join("::")}"
end
def update(op_code, data)
if op_code == Mixin::OPCodes::EVENT
event = data[:eventType]