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
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.application ⇒ Object
Returns the value of attribute application.
-
.endpoint ⇒ Object
Returns the value of attribute endpoint.
-
.environment ⇒ Object
Returns the value of attribute environment.
Class Method Summary collapse
- .configure_client {|_self| ... } ⇒ Object
- .context_data ⇒ Object
- .create ⇒ Object
- .create_context(context_config) ⇒ Object
- .create_context_config ⇒ Object
- .create_context_with(context_config, data) ⇒ Object
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
17 18 19 |
# File 'lib/absmartly.rb', line 17 def api_key @api_key end |
.application ⇒ Object
Returns the value of attribute application.
17 18 19 |
# File 'lib/absmartly.rb', line 17 def application @application end |
.endpoint ⇒ Object
Returns the value of attribute endpoint.
17 18 19 |
# File 'lib/absmartly.rb', line 17 def endpoint @endpoint end |
.environment ⇒ Object
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
19 20 21 |
# File 'lib/absmartly.rb', line 19 def configure_client yield self end |
.context_data ⇒ Object
39 40 41 |
# File 'lib/absmartly.rb', line 39 def context_data sdk.context_data end |
.create ⇒ Object
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_config ⇒ Object
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 |