Class: AdLocalize::ViewModels::TranslationViewModel
- Inherits:
-
Object
- Object
- AdLocalize::ViewModels::TranslationViewModel
- Defined in:
- lib/ad_localize/view_models/translation_view_model.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(label:, key:, value:, comment:) ⇒ TranslationViewModel
constructor
A new instance of TranslationViewModel.
Constructor Details
#initialize(label:, key:, value:, comment:) ⇒ TranslationViewModel
Returns a new instance of TranslationViewModel.
11 12 13 14 15 16 |
# File 'lib/ad_localize/view_models/translation_view_model.rb', line 11 def initialize(label:, key:, value:, comment:) @label = label @key = key @value = value @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
4 5 6 |
# File 'lib/ad_localize/view_models/translation_view_model.rb', line 4 def comment @comment end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/ad_localize/view_models/translation_view_model.rb', line 4 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'lib/ad_localize/view_models/translation_view_model.rb', line 4 def label @label end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/ad_localize/view_models/translation_view_model.rb', line 4 def value @value end |