class AdLocalize::Entities::Translation

Attributes

comment[R]
key[R]
locale[R]
value[RW]

Public Class Methods

new(locale:, key:, value:, comment: nil) click to toggle source
# File lib/ad_localize/entities/translation.rb, line 12
def initialize(locale:, key:, value:, comment: nil)
  @locale = locale
  @key = key
  @value = value
  @comment = comment
end

Public Instance Methods

==(o) click to toggle source
# File lib/ad_localize/entities/translation.rb, line 19
def ==(o)
  o.class == self.class &&
  o.locale == locale &&
  o.key == key &&
  o.value == value &&
  o.comment == comment
end