Class: Desmoservice::Word

Inherits:
Object
  • Object
show all
Defined in:
lib/word_distribution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, value) ⇒ Word

Returns a new instance of Word.



36
37
38
39
40
# File 'lib/word_distribution.rb', line 36

def initialize(id, value)
  @id = id
  @value = value
  @term_ids = Array.new
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



34
35
36
# File 'lib/word_distribution.rb', line 34

def id
  @id
end

#term_idsObject (readonly)

Returns the value of attribute term_ids.



34
35
36
# File 'lib/word_distribution.rb', line 34

def term_ids
  @term_ids
end

#valueObject (readonly)

Returns the value of attribute value.



34
35
36
# File 'lib/word_distribution.rb', line 34

def value
  @value
end