Class: RTM::AR::LiteralIndex
- Defined in:
- lib/rtm/activerecord/literal_index.rb
Instance Attribute Summary
Attributes inherited from Index
Instance Method Summary collapse
- #names(value) ⇒ Object (also: #getNames)
- #occurrences(value) ⇒ Object (also: #getOccurrences)
- #variants(value) ⇒ Object (also: #getVariants)
Methods inherited from Index
#close, #initialize, #isAutoUpdated, #isOpen, #open, #reindex
Constructor Details
This class inherits a constructor from RTM::AR::Index
Instance Method Details
#names(value) ⇒ Object Also known as: getNames
23 24 25 |
# File 'lib/rtm/activerecord/literal_index.rb', line 23 def names(value) Names.wrap(self.itopic_map.names.find(:all,:conditions => ["value = ?", value])) end |
#occurrences(value) ⇒ Object Also known as: getOccurrences
28 29 30 |
# File 'lib/rtm/activerecord/literal_index.rb', line 28 def occurrences(value) Occurrences.wrap(self.itopic_map.occurrences.find(:all,:conditions => ["value = ?", value])) end |