Module: Absmartly

Defined in:
lib/absmartly.rb,
lib/absmartly/version.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"1.1.2"
@@init_config =
nil

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



17
18
19
# File 'lib/absmartly.rb', line 17

def api_key
  @api_key
end

.applicationObject

Returns the value of attribute application.



17
18
19
# File 'lib/absmartly.rb', line 17

def application
  @application
end

.endpointObject

Returns the value of attribute endpoint.



17
18
19
# File 'lib/absmartly.rb', line 17

def endpoint
  @endpoint
end

.environmentObject

Returns the value of attribute environment.



17
18
19
# File 'lib/absmartly.rb', line 17

def environment
  @environment
end

Class Method Details

.configure_client {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Absmartly)

    the object that the method was called on



19
20
21
# File 'lib/absmartly.rb', line 19

def configure_client
  yield self
end

.context_dataObject



39
40
41
# File 'lib/absmartly.rb', line 39

def context_data
  sdk.context_data
end

.createObject



23
24
25
# File 'lib/absmartly.rb', line 23

def create
  ABSmartly.create(sdk_config)
end

.create_context(context_config) ⇒ Object



31
32
33
# File 'lib/absmartly.rb', line 31

def create_context(context_config)
  sdk.create_context(context_config)
end

.create_context_configObject



27
28
29
# File 'lib/absmartly.rb', line 27

def create_context_config
  ContextConfig.create
end

.create_context_with(context_config, data) ⇒ Object



35
36
37
# File 'lib/absmartly.rb', line 35

def create_context_with(context_config, data)
  sdk.create_context_with(context_config, data)
end