Class: Oss::Document

Inherits:
Field
  • Object
show all
Defined in:
lib/oss_rb.rb

Instance Attribute Summary collapse

Attributes inherited from Field

#boost, #name, #value

Instance Method Summary collapse

Constructor Details

#initialize(lang = 'ENGLISH') ⇒ Document

Returns a new instance of Document.



151
152
153
154
# File 'lib/oss_rb.rb', line 151

def initialize(lang ='ENGLISH')
  @lang = lang
  @fields = Array.new
end

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



150
151
152
# File 'lib/oss_rb.rb', line 150

def fields
  @fields
end

#langObject

Returns the value of attribute lang.



150
151
152
# File 'lib/oss_rb.rb', line 150

def lang
  @lang
end