Class: Hobix::Search::Simple::Content

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content, identifier, mtime, clsf) ⇒ Content

Returns a new instance of Content.



20
21
22
23
24
25
# File 'lib/hobix/search/simple.rb', line 20

def initialize(content, identifier, mtime, clsf)
  @content = content
  @identifier = identifier
  @mtime = mtime
  @classifications = clsf
end

Instance Attribute Details

#classificationsObject

Returns the value of attribute classifications.



19
20
21
# File 'lib/hobix/search/simple.rb', line 19

def classifications
  @classifications
end

#contentObject

Returns the value of attribute content.



19
20
21
# File 'lib/hobix/search/simple.rb', line 19

def content
  @content
end

#identifierObject

Returns the value of attribute identifier.



19
20
21
# File 'lib/hobix/search/simple.rb', line 19

def identifier
  @identifier
end

#mtimeObject

Returns the value of attribute mtime.



19
20
21
# File 'lib/hobix/search/simple.rb', line 19

def mtime
  @mtime
end