Class: DaFace::Datasift::Salience
- Inherits:
-
Object
- Object
- DaFace::Datasift::Salience
- Defined in:
- lib/da_face/datasift/salience.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(data) ⇒ Salience
constructor
A new instance of Salience.
- #sentiment ⇒ Object
Constructor Details
#initialize(data) ⇒ Salience
Returns a new instance of Salience.
6 7 8 |
# File 'lib/da_face/datasift/salience.rb', line 6 def initialize data @content = data[:content] end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/da_face/datasift/salience.rb', line 4 def content @content end |
Instance Method Details
#sentiment ⇒ Object
10 11 12 |
# File 'lib/da_face/datasift/salience.rb', line 10 def sentiment self.content[:sentiment] end |