Class: Desmoservice::Word
- Inherits:
-
Object
- Object
- Desmoservice::Word
- Defined in:
- lib/word_distribution.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#term_ids ⇒ Object
readonly
Returns the value of attribute term_ids.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(id, value) ⇒ Word
constructor
A new instance of Word.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
34 35 36 |
# File 'lib/word_distribution.rb', line 34 def id @id end |
#term_ids ⇒ Object (readonly)
Returns the value of attribute term_ids.
34 35 36 |
# File 'lib/word_distribution.rb', line 34 def term_ids @term_ids end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
34 35 36 |
# File 'lib/word_distribution.rb', line 34 def value @value end |