Class: XapiScraper::Models::Components::SentimentAnalysisModel
- Inherits:
-
Object
- Object
- XapiScraper::Models::Components::SentimentAnalysisModel
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/xapi_scraper/models/components/sentimentanalysismodel.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(tone: nil, sentiment: nil) ⇒ SentimentAnalysisModel
constructor
A new instance of SentimentAnalysisModel.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(tone: nil, sentiment: nil) ⇒ SentimentAnalysisModel
Returns a new instance of SentimentAnalysisModel.
28 29 30 31 |
# File 'lib/xapi_scraper/models/components/sentimentanalysismodel.rb', line 28 def initialize(tone: nil, sentiment: nil) @tone = tone @sentiment = sentiment end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/xapi_scraper/models/components/sentimentanalysismodel.rb', line 34 def ==(other) return false unless other.is_a?(self.class) return false unless @tone == other.tone return false unless @sentiment == other.sentiment true end |