Class: Search::Simple::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/search/simple/searcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



18
19
20
# File 'lib/search/simple/searcher.rb', line 18

def content
  @content
end

#identifierObject

Returns the value of attribute identifier.



18
19
20
# File 'lib/search/simple/searcher.rb', line 18

def identifier
  @identifier
end

#mtimeObject

Returns the value of attribute mtime.



18
19
20
# File 'lib/search/simple/searcher.rb', line 18

def mtime
  @mtime
end