Class: Lara::Models::ImageParagraph

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

parse_time

Constructor Details

#initialize(text:, translation:, adapted_to_matches: nil, glossaries_matches: nil) ⇒ ImageParagraph

Returns a new instance of ImageParagraph.



24
25
26
27
28
29
30
# File 'lib/lara/models/images.rb', line 24

def initialize(text:, translation:, adapted_to_matches: nil, glossaries_matches: nil)
  super()
  @text = text
  @translation = translation
  @adapted_to_matches = adapted_to_matches
  @glossaries_matches = glossaries_matches
end

Instance Attribute Details

#adapted_to_matchesObject (readonly)

Returns the value of attribute adapted_to_matches.



22
23
24
# File 'lib/lara/models/images.rb', line 22

def adapted_to_matches
  @adapted_to_matches
end

#glossaries_matchesObject (readonly)

Returns the value of attribute glossaries_matches.



22
23
24
# File 'lib/lara/models/images.rb', line 22

def glossaries_matches
  @glossaries_matches
end

#textObject (readonly)

Returns the value of attribute text.



22
23
24
# File 'lib/lara/models/images.rb', line 22

def text
  @text
end

#translationObject (readonly)

Returns the value of attribute translation.



22
23
24
# File 'lib/lara/models/images.rb', line 22

def translation
  @translation
end