Class: Search::Simple::Content
- Inherits:
-
Object
- Object
- Search::Simple::Content
- Defined in:
- lib/search/simple/searcher.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
Instance Method Summary collapse
-
#initialize(content, identifier, mtime) ⇒ Content
constructor
A new instance of Content.
Constructor Details
#initialize(content, identifier, mtime) ⇒ Content
Returns a new instance of Content.
19 20 21 22 23 |
# File 'lib/search/simple/searcher.rb', line 19 def initialize(content, identifier, mtime) @content = content @identifier = identifier @mtime = mtime end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
18 19 20 |
# File 'lib/search/simple/searcher.rb', line 18 def content @content end |
#identifier ⇒ Object
Returns the value of attribute identifier.
18 19 20 |
# File 'lib/search/simple/searcher.rb', line 18 def identifier @identifier end |
#mtime ⇒ Object
Returns the value of attribute mtime.
18 19 20 |
# File 'lib/search/simple/searcher.rb', line 18 def mtime @mtime end |