Class: Ditto::Label
- Inherits:
-
Object
- Object
- Ditto::Label
- Defined in:
- lib/ditto/label.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #confidence ⇒ Object
- #id ⇒ Object
-
#initialize(data) ⇒ Label
constructor
A new instance of Label.
- #label ⇒ Object
Constructor Details
#initialize(data) ⇒ Label
Returns a new instance of Label.
5 6 7 |
# File 'lib/ditto/label.rb', line 5 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/ditto/label.rb', line 3 def data @data end |
Instance Method Details
#confidence ⇒ Object
17 18 19 |
# File 'lib/ditto/label.rb', line 17 def confidence data[:confidence] end |
#id ⇒ Object
9 10 11 |
# File 'lib/ditto/label.rb', line 9 def id data[:id] end |
#label ⇒ Object
13 14 15 |
# File 'lib/ditto/label.rb', line 13 def label data[:label] end |