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.



90
91
92
93
94
95
96
# File 'lib/lara/models/text.rb', line 90

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.



88
89
90
# File 'lib/lara/models/text.rb', line 88

def explanation
  @explanation
end

#idObject (readonly)

Returns the value of attribute id.



88
89
90
# File 'lib/lara/models/text.rb', line 88

def id
  @id
end

#original_translationObject (readonly)

Returns the value of attribute original_translation.



88
89
90
# File 'lib/lara/models/text.rb', line 88

def original_translation
  @original_translation
end

#refined_translationObject (readonly)

Returns the value of attribute refined_translation.



88
89
90
# File 'lib/lara/models/text.rb', line 88

def refined_translation
  @refined_translation
end

Instance Method Details

#to_sObject



98
99
100
# File 'lib/lara/models/text.rb', line 98

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