Class: SentimentInsights::Export::BaseExporter
- Inherits:
-
Object
- Object
- SentimentInsights::Export::BaseExporter
- Defined in:
- lib/sentiment_insights/export/base_exporter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#analysis_type ⇒ Object
readonly
Returns the value of attribute analysis_type.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result, options = {}) ⇒ BaseExporter
constructor
A new instance of BaseExporter.
Constructor Details
#initialize(result, options = {}) ⇒ BaseExporter
Returns a new instance of BaseExporter.
9 10 11 12 13 |
# File 'lib/sentiment_insights/export/base_exporter.rb', line 9 def initialize(result, = {}) @result = result @options = .merge() @analysis_type = detect_analysis_type(result) end |
Instance Attribute Details
#analysis_type ⇒ Object (readonly)
Returns the value of attribute analysis_type.
7 8 9 |
# File 'lib/sentiment_insights/export/base_exporter.rb', line 7 def analysis_type @analysis_type end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/sentiment_insights/export/base_exporter.rb', line 7 def @options end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/sentiment_insights/export/base_exporter.rb', line 7 def result @result end |