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.3".freeze

Class Method Summary collapse

Class Method Details

.card(*args, **options) ⇒ Object



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

def card(*args, **options)
  client.card(*args, **options)
end

.client(*args, **options) ⇒ Object



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

def client(*args, **options)
  @client ||= initialize_client(*args, **options)
end

.get_user_config(*args, **options) ⇒ Object



30
31
32
# File 'lib/geewiz.rb', line 30

def get_user_config(*args, **options)
  client.get_user_config(*args, **options)
end

.initialize_client(*args, **options) ⇒ Object



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

def initialize_client(*args, **options)
  @client = Client.new(*args, **options)
end

.set(*args, **options) ⇒ Object



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

def set(*args, **options)
  client.set(*args, **options)
end

.var(*args, **options) ⇒ Object



34
35
36
# File 'lib/geewiz.rb', line 34

def var(*args, **options)
  client.var(*args, **options)
end

.varsObject



38
39
40
# File 'lib/geewiz.rb', line 38

def vars
  client.vars
end