Class: Lara::Models::StyleguideChange

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(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

#explanationObject (readonly)

Returns the value of attribute explanation.



72
73
74
# File 'lib/lara/models/text.rb', line 72

def explanation
  @explanation
end

#idObject (readonly)

Returns the value of attribute id.



72
73
74
# File 'lib/lara/models/text.rb', line 72

def id
  @id
end

#original_translationObject (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_translationObject (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_sObject



82
83
84
# File 'lib/lara/models/text.rb', line 82

def to_s
  "StyleguideChange{id='#{id}', explanation='#{explanation}'}"
end