Module: Absmartly

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

Defined Under Namespace

Classes: Error, Md5, VariantAssigner

Constant Summary collapse

VERSION =
"1.1.0"
@@init_config =
nil

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.applicationObject

Returns the value of attribute application.



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

def application
  @application
end

.endpointObject

Returns the value of attribute endpoint.



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

def endpoint
  @endpoint
end

.environmentObject

Returns the value of attribute environment.



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

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



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

def configure_client
  yield self
end

.createObject



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

def create
  ABSmartly.create(sdk_config)
end

.create_context(context_config) ⇒ Object



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

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

.create_context_configObject



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

def create_context_config
  ContextConfig.create
end