Class: Lara::Models::NGGlossaryMatch

Inherits:
Base
  • Object
show all
Defined in:
lib/lara/models/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

parse_time

Constructor Details

#initialize(glossary:, language:, term:, translation:) ⇒ NGGlossaryMatch

Returns a new instance of NGGlossaryMatch.



33
34
35
36
37
38
39
# File 'lib/lara/models/text.rb', line 33

def initialize(glossary:, language:, term:, translation:)
  super()
  @glossary = glossary
  @language = language
  @term = term
  @translation = translation
end

Instance Attribute Details

#glossaryObject (readonly)

Returns the value of attribute glossary.



31
32
33
# File 'lib/lara/models/text.rb', line 31

def glossary
  @glossary
end

#languageObject (readonly)

Returns the value of attribute language.



31
32
33
# File 'lib/lara/models/text.rb', line 31

def language
  @language
end

#termObject (readonly)

Returns the value of attribute term.



31
32
33
# File 'lib/lara/models/text.rb', line 31

def term
  @term
end

#translationObject (readonly)

Returns the value of attribute translation.



31
32
33
# File 'lib/lara/models/text.rb', line 31

def translation
  @translation
end