class Tanker::Core::Options
Constants
- SDK_TYPE
- SDK_VERSION
Public Class Methods
new(app_id:, url: nil, sdk_type: SDK_TYPE, writable_path: nil)
click to toggle source
Calls superclass method
# File lib/tanker/core/options.rb, line 19 def initialize(app_id:, url: nil, sdk_type: SDK_TYPE, writable_path: nil) super() # NOTE: Instance variables are required to keep the CStrings alive @app_id = CTanker.new_cstring app_id @url = CTanker.new_cstring url @writable_path = CTanker.new_cstring writable_path @sdk_type = CTanker.new_cstring sdk_type self[:version] = 2 self[:app_id] = @app_id self[:url] = @url self[:writable_path] = @writable_path self[:sdk_type] = @sdk_type self[:sdk_version] = SDK_VERSION end