Class: TwitterCldr::Segmentation::Metadata
- Inherits:
-
Object
- Object
- TwitterCldr::Segmentation::Metadata
- Defined in:
- lib/twitter_cldr/segmentation/metadata.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #category_count ⇒ Object
-
#initialize(values) ⇒ Metadata
constructor
A new instance of Metadata.
- #lookahead_results_size ⇒ Object
Constructor Details
#initialize(values) ⇒ Metadata
Returns a new instance of Metadata.
11 12 13 |
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 11 def initialize(values) @values = values end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
9 10 11 |
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 9 def values @values end |
Instance Method Details
#category_count ⇒ Object
15 16 17 |
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 15 def category_count @category_count ||= values[:category_count] end |
#lookahead_results_size ⇒ Object
19 20 21 |
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 19 def lookahead_results_size @lookahead_results_size ||= values[:lookahead_results_size] end |