Module: Absmartly

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

Defined Under Namespace

Classes: Error, VariantAssigner

Constant Summary collapse

VERSION =
"1.1.1"
@@init_config =
nil

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.applicationObject

Returns the value of attribute application.



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

def application
  @application
end

.endpointObject

Returns the value of attribute endpoint.



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

def endpoint
  @endpoint
end

.environmentObject

Returns the value of attribute environment.



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

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



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

def configure_client
  yield self
end

.createObject



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

def create
  ABSmartly.create(sdk_config)
end

.create_context(context_config) ⇒ Object



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

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

.create_context_configObject



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

def create_context_config
  ContextConfig.create
end