Class: Localeapp::MissingTranslationRecord

Inherits:
Struct
  • Object
show all
Defined in:
lib/localeapp/missing_translations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



4
5
6
# File 'lib/localeapp/missing_translations.rb', line 4

def description
  @description
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



4
5
6
# File 'lib/localeapp/missing_translations.rb', line 4

def key
  @key
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



4
5
6
# File 'lib/localeapp/missing_translations.rb', line 4

def locale
  @locale
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



4
5
6
# File 'lib/localeapp/missing_translations.rb', line 4

def options
  @options
end

Instance Method Details

#blacklisted?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/localeapp/missing_translations.rb', line 5

def blacklisted?
  key_path.match(Localeapp.configuration.blacklisted_keys_pattern)
end

#key_pathObject



9
10
11
# File 'lib/localeapp/missing_translations.rb', line 9

def key_path
  [options[:scope], key].compact.join('.')
end