Class: Lara::Models::StyleguideChange
- Defined in:
- lib/lara/models/text.rb
Instance Attribute Summary collapse
-
#explanation ⇒ Object
readonly
Returns the value of attribute explanation.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#original_translation ⇒ Object
readonly
Returns the value of attribute original_translation.
-
#refined_translation ⇒ Object
readonly
Returns the value of attribute refined_translation.
Instance Method Summary collapse
-
#initialize(id:, original_translation:, refined_translation:, explanation:) ⇒ StyleguideChange
constructor
A new instance of StyleguideChange.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(id:, original_translation:, refined_translation:, explanation:) ⇒ StyleguideChange
Returns a new instance of StyleguideChange.
74 75 76 77 78 79 80 |
# File 'lib/lara/models/text.rb', line 74 def initialize(id:, original_translation:, refined_translation:, explanation:) super() @id = id @original_translation = original_translation @refined_translation = refined_translation @explanation = explanation end |
Instance Attribute Details
#explanation ⇒ Object (readonly)
Returns the value of attribute explanation.
72 73 74 |
# File 'lib/lara/models/text.rb', line 72 def explanation @explanation end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
72 73 74 |
# File 'lib/lara/models/text.rb', line 72 def id @id end |
#original_translation ⇒ Object (readonly)
Returns the value of attribute original_translation.
72 73 74 |
# File 'lib/lara/models/text.rb', line 72 def original_translation @original_translation end |
#refined_translation ⇒ Object (readonly)
Returns the value of attribute refined_translation.
72 73 74 |
# File 'lib/lara/models/text.rb', line 72 def refined_translation @refined_translation end |
Instance Method Details
#to_s ⇒ Object
82 83 84 |
# File 'lib/lara/models/text.rb', line 82 def to_s "StyleguideChange{id='#{id}', explanation='#{explanation}'}" end |