Module: Geewiz

Defined in:
lib/geewiz.rb,
lib/geewiz/client.rb,
lib/geewiz/version.rb,
lib/geewiz/var_cache.rb

Overview

Provides functionality interacting with clients. To use the global client, call ‘Geewiz.card(…)`, `Geewiz.vars = …`, etc.

Defined Under Namespace

Classes: Client, Error, VarCache

Constant Summary collapse

VERSION =
"0.1.1".freeze

Class Method Summary collapse

Class Method Details

.cardObject



23
# File 'lib/geewiz.rb', line 23

def card(...)            = client.card(...)

.clientObject



18
19
20
# File 'lib/geewiz.rb', line 18

def client(...)
  @client ||= initialize_client(...)
end

.get_user_configObject



24
# File 'lib/geewiz.rb', line 24

def get_user_config(...) = client.get_user_config(...)

.initialize_clientObject



14
15
16
# File 'lib/geewiz.rb', line 14

def initialize_client(...)
  @client = Client.new(...)
end

.setObject



22
# File 'lib/geewiz.rb', line 22

def set(...)             = client.set(...)

.varObject



25
# File 'lib/geewiz.rb', line 25

def var(...)             = client.var(...)

.varsObject



26
# File 'lib/geewiz.rb', line 26

def vars(...)            = client.vars(...)