Module: OmniApi

Defined in:
lib/omni_api.rb

Class Method Summary collapse

Class Method Details

.client_access_tokenObject



16
17
18
# File 'lib/omni_api.rb', line 16

def self.client_access_token
  @client_access_token || 'bearer empty'
end

.client_access_token=(token) ⇒ Object



12
13
14
# File 'lib/omni_api.rb', line 12

def self.client_access_token=(token)
  @client_access_token = "bearer #{token}"
end

.configObject



20
21
22
# File 'lib/omni_api.rb', line 20

def self.config
  self
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (OmniApi)

    the object that the method was called on



24
25
26
# File 'lib/omni_api.rb', line 24

def self.setup
  yield self
end