Class: Lara::Models::NGMemoryMatch

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(memory:, language:, sentence:, translation:, tuid: nil) ⇒ NGMemoryMatch

Returns a new instance of NGMemoryMatch.



20
21
22
23
24
25
26
27
# File 'lib/lara/models/text.rb', line 20

def initialize(memory:, language:, sentence:, translation:, tuid: nil)
  super()
  @memory = memory
  @tuid = tuid
  @language = language
  @sentence = sentence
  @translation = translation
end

Instance Attribute Details

#languageObject (readonly)

Returns the value of attribute language.



18
19
20
# File 'lib/lara/models/text.rb', line 18

def language
  @language
end

#memoryObject (readonly)

Returns the value of attribute memory.



18
19
20
# File 'lib/lara/models/text.rb', line 18

def memory
  @memory
end

#sentenceObject (readonly)

Returns the value of attribute sentence.



18
19
20
# File 'lib/lara/models/text.rb', line 18

def sentence
  @sentence
end

#translationObject (readonly)

Returns the value of attribute translation.



18
19
20
# File 'lib/lara/models/text.rb', line 18

def translation
  @translation
end

#tuidObject (readonly)

Returns the value of attribute tuid.



18
19
20
# File 'lib/lara/models/text.rb', line 18

def tuid
  @tuid
end