Class: TwitterCldr::Segmentation::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/segmentation/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valuesObject (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_countObject



15
16
17
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 15

def category_count
  @category_count ||= values[:category_count]
end

#lookahead_results_sizeObject



19
20
21
# File 'lib/twitter_cldr/segmentation/metadata.rb', line 19

def lookahead_results_size
  @lookahead_results_size ||= values[:lookahead_results_size]
end