Class: LLT::Review::Alignment::Difference::Translation
- Inherits:
-
Object
- Object
- LLT::Review::Alignment::Difference::Translation
- Includes:
- Core::Structures::HashContainable, Helpers::ReviewReporter
- Defined in:
- lib/llt/review/alignment/difference/translation.rb
Instance Attribute Summary collapse
-
#new ⇒ Object
readonly
Returns the value of attribute new.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Attributes included from Helpers::ReviewReporter
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(original, new) ⇒ Translation
constructor
A new instance of Translation.
- #xml_attributes ⇒ Object
Methods included from Helpers::ReviewReporter
Constructor Details
#initialize(original, new) ⇒ Translation
Returns a new instance of Translation.
11 12 13 14 15 16 |
# File 'lib/llt/review/alignment/difference/translation.rb', line 11 def initialize(original, new) @id = id @original = original @new = new @container = {} end |
Instance Attribute Details
#new ⇒ Object (readonly)
Returns the value of attribute new.
9 10 11 |
# File 'lib/llt/review/alignment/difference/translation.rb', line 9 def new @new end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
9 10 11 |
# File 'lib/llt/review/alignment/difference/translation.rb', line 9 def original @original end |
Instance Method Details
#id ⇒ Object
18 19 20 |
# File 'lib/llt/review/alignment/difference/translation.rb', line 18 def id xml_tag end |
#xml_attributes ⇒ Object
22 23 24 |
# File 'lib/llt/review/alignment/difference/translation.rb', line 22 def xml_attributes { original: @original, new: @new, unique: @unique } end |