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.



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

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

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



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

def fields
  @fields
end

#langObject

Returns the value of attribute lang.



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

def lang
  @lang
end