module LL::WK::API::Connection
Constants
- SUPPORTS_CURSOR
Public Instance Methods
factory(url:, email:, password:, type: 'httparty')
click to toggle source
# File lib/ll/wk/api/connection.rb, line 17 def factory(url:, email:, password:, type: 'httparty') require "ll/wk/api/connection/#{type}" @@connectors[type].new(url: url, email: email, password: password) end
register(name, klass)
click to toggle source
# File lib/ll/wk/api/connection.rb, line 12 def register(name, klass) @@connectors ||= {} @@connectors[name] = klass end