Class: MixinBot::BotAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/mixin_bot/bot_auth.rb

Overview

Bot platform request signing (parity with Go BotAuthClient).

Defined Under Namespace

Classes: Client, MapCache

Class Method Summary collapse

Class Method Details

.new_client(api, cache: MapCache.new) ⇒ Object



63
64
65
# File 'lib/mixin_bot/bot_auth.rb', line 63

def self.new_client(api, cache: MapCache.new)
  Client.new(api, cache:)
end

.new_default_client(api, cache: MapCache.new) ⇒ Object



67
68
69
# File 'lib/mixin_bot/bot_auth.rb', line 67

def self.new_default_client(api, cache: MapCache.new)
  new_client(api, cache:)
end

.new_map_cacheObject



59
60
61
# File 'lib/mixin_bot/bot_auth.rb', line 59

def self.new_map_cache
  MapCache.new
end