Module: Absmartly

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

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"1.2.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



15
16
17
# File 'lib/absmartly.rb', line 15

def api_key
  @api_key
end

.applicationObject

Returns the value of attribute application.



15
16
17
# File 'lib/absmartly.rb', line 15

def application
  @application
end

.connect_timeoutObject

Returns the value of attribute connect_timeout.



15
16
17
# File 'lib/absmartly.rb', line 15

def connect_timeout
  @connect_timeout
end

.connection_request_timeoutObject

Returns the value of attribute connection_request_timeout.



15
16
17
# File 'lib/absmartly.rb', line 15

def connection_request_timeout
  @connection_request_timeout
end

.endpointObject

Returns the value of attribute endpoint.



15
16
17
# File 'lib/absmartly.rb', line 15

def endpoint
  @endpoint
end

.environmentObject

Returns the value of attribute environment.



15
16
17
# File 'lib/absmartly.rb', line 15

def environment
  @environment
end

.event_loggerObject

Returns the value of attribute event_logger.



15
16
17
# File 'lib/absmartly.rb', line 15

def event_logger
  @event_logger
end

.max_retriesObject

Returns the value of attribute max_retries.



15
16
17
# File 'lib/absmartly.rb', line 15

def max_retries
  @max_retries
end

.retry_intervalObject

Returns the value of attribute retry_interval.



15
16
17
# File 'lib/absmartly.rb', line 15

def retry_interval
  @retry_interval
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