Class: GetStream::Generated::Models::IntentConditionInfo
- Defined in:
- lib/getstream_ruby/generated/models/intent_condition_info.rb
Instance Attribute Summary collapse
-
#passed ⇒ Boolean
Whether the score reached the threshold.
-
#score ⇒ Integer
Final (damped) score of the topic in this analysis; 0 when the topic is not defined in the policy.
-
#threshold ⇒ Integer
Minimum score (1-100) the condition requires.
-
#topic ⇒ String
Policy intent topic label the condition references.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ IntentConditionInfo
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ IntentConditionInfo
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 26 def initialize(attributes = {}) super(attributes) @passed = attributes.fetch(:passed) { attributes.fetch('passed', nil) } @score = attributes.fetch(:score) { attributes.fetch('score', nil) } @threshold = attributes.fetch(:threshold) { attributes.fetch('threshold', nil) } @topic = attributes.fetch(:topic) { attributes.fetch('topic', nil) } end |
Instance Attribute Details
#passed ⇒ Boolean
Returns Whether the score reached the threshold.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 14 def passed @passed end |
#score ⇒ Integer
Returns Final (damped) score of the topic in this analysis; 0 when the topic is not defined in the policy.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 17 def score @score end |
#threshold ⇒ Integer
Returns Minimum score (1-100) the condition requires.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 20 def threshold @threshold end |
#topic ⇒ String
Returns Policy intent topic label the condition references.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 23 def topic @topic end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/intent_condition_info.rb', line 35 def self.json_field_mappings { passed: 'passed', score: 'score', threshold: 'threshold', topic: 'topic' } end |