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.



11
12
13
14
15
16
17
# File 'lib/lara/models/images.rb', line 11

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.



9
10
11
# File 'lib/lara/models/images.rb', line 9

def adapted_to_matches
  @adapted_to_matches
end

#glossaries_matchesObject (readonly)

Returns the value of attribute glossaries_matches.



9
10
11
# File 'lib/lara/models/images.rb', line 9

def glossaries_matches
  @glossaries_matches
end

#textObject (readonly)

Returns the value of attribute text.



9
10
11
# File 'lib/lara/models/images.rb', line 9

def text
  @text
end

#translationObject (readonly)

Returns the value of attribute translation.



9
10
11
# File 'lib/lara/models/images.rb', line 9

def translation
  @translation
end