Class: Smyte::Classification
- Inherits:
-
Object
- Object
- Smyte::Classification
- Includes:
- LabelReporter
- Defined in:
- lib/smyte/classification.rb
Defined Under Namespace
Classes: Label
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(response, options = {}) ⇒ Classification
constructor
A new instance of Classification.
Methods included from LabelReporter
#action, #label_actions, #label_report, #labels, #reset_labels
Constructor Details
#initialize(response, options = {}) ⇒ Classification
Returns a new instance of Classification.
11 12 13 14 |
# File 'lib/smyte/classification.rb', line 11 def initialize(response, ={}) @response = response @options = || {} end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/smyte/classification.rb', line 9 def @options end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/smyte/classification.rb', line 9 def response @response end |
Class Method Details
.allowed ⇒ Object
5 6 7 |
# File 'lib/smyte/classification.rb', line 5 def self.allowed new('verdict' => "ALLOW", 'labels' => {}) end |