Class: Lara::Models::TextBlock

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(text:, translatable: true) ⇒ TextBlock

Returns a new instance of TextBlock.



10
11
12
13
14
# File 'lib/lara/models/text.rb', line 10

def initialize(text:, translatable: true)
  super()
  @text = text
  @translatable = !!translatable
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



8
9
10
# File 'lib/lara/models/text.rb', line 8

def text
  @text
end

#translatableObject (readonly)

Returns the value of attribute translatable.



8
9
10
# File 'lib/lara/models/text.rb', line 8

def translatable
  @translatable
end