Class: Twilic::Core::Session::SessionOptions

Inherits:
Data
  • Object
show all
Defined in:
lib/twilic/core/session.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enable_state_patchObject (readonly)

Returns the value of attribute enable_state_patch

Returns:

  • (Object)

    the current value of enable_state_patch



29
30
31
# File 'lib/twilic/core/session.rb', line 29

def enable_state_patch
  @enable_state_patch
end

#enable_template_batchObject (readonly)

Returns the value of attribute enable_template_batch

Returns:

  • (Object)

    the current value of enable_template_batch



29
30
31
# File 'lib/twilic/core/session.rb', line 29

def enable_template_batch
  @enable_template_batch
end

#enable_trained_dictionaryObject (readonly)

Returns the value of attribute enable_trained_dictionary

Returns:

  • (Object)

    the current value of enable_trained_dictionary



29
30
31
# File 'lib/twilic/core/session.rb', line 29

def enable_trained_dictionary
  @enable_trained_dictionary
end

#max_base_snapshotsObject (readonly)

Returns the value of attribute max_base_snapshots

Returns:

  • (Object)

    the current value of max_base_snapshots



29
30
31
# File 'lib/twilic/core/session.rb', line 29

def max_base_snapshots
  @max_base_snapshots
end

#unknown_reference_policyObject (readonly)

Returns the value of attribute unknown_reference_policy

Returns:

  • (Object)

    the current value of unknown_reference_policy



29
30
31
# File 'lib/twilic/core/session.rb', line 29

def unknown_reference_policy
  @unknown_reference_policy
end

Class Method Details

.defaultObject



33
34
35
36
37
38
39
40
41
# File 'lib/twilic/core/session.rb', line 33

def self.default
  new(
    max_base_snapshots: 8,
    enable_state_patch: true,
    enable_template_batch: true,
    enable_trained_dictionary: true,
    unknown_reference_policy: UnknownReferencePolicy::FAIL_FAST
  )
end