Class: DaFace::Datasift::Language
- Inherits:
-
Object
- Object
- DaFace::Datasift::Language
- Defined in:
- lib/da_face/datasift/language.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#tag_extended ⇒ Object
readonly
Returns the value of attribute tag_extended.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Language
constructor
A new instance of Language.
Constructor Details
#initialize(data = {}) ⇒ Language
Returns a new instance of Language.
6 7 8 9 10 |
# File 'lib/da_face/datasift/language.rb', line 6 def initialize data={} @confidence = data[:confidence] @tag = data[:tag] @tag_extended = data[:tag_extended] end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
4 5 6 |
# File 'lib/da_face/datasift/language.rb', line 4 def confidence @confidence end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
4 5 6 |
# File 'lib/da_face/datasift/language.rb', line 4 def tag @tag end |
#tag_extended ⇒ Object (readonly)
Returns the value of attribute tag_extended.
4 5 6 |
# File 'lib/da_face/datasift/language.rb', line 4 def tag_extended @tag_extended end |