Class: HadoopDsl::LogAnalysis::LogAnalysisReducerModel::Topic
- Inherits:
-
Object
- Object
- HadoopDsl::LogAnalysis::LogAnalysisReducerModel::Topic
- Defined in:
- lib/log_analysis.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #==(rh) ⇒ Object
-
#initialize(label, values) ⇒ Topic
constructor
A new instance of Topic.
Constructor Details
#initialize(label, values) ⇒ Topic
Returns a new instance of Topic.
206 207 208 |
# File 'lib/log_analysis.rb', line 206 def initialize(label, values) @label, @values = label, values end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
204 205 206 |
# File 'lib/log_analysis.rb', line 204 def label @label end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
204 205 206 |
# File 'lib/log_analysis.rb', line 204 def values @values end |
Instance Method Details
#==(rh) ⇒ Object
210 |
# File 'lib/log_analysis.rb', line 210 def ==(rh) self.label == rh.label end |