Class: Localeapp::MissingTranslationRecord
- Inherits:
-
Struct
- Object
- Struct
- Localeapp::MissingTranslationRecord
- Defined in:
- lib/localeapp/missing_translations.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#key ⇒ Object
Returns the value of attribute key.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
4 5 6 |
# File 'lib/localeapp/missing_translations.rb', line 4 def description @description end |
#key ⇒ Object
Returns the value of attribute key
4 5 6 |
# File 'lib/localeapp/missing_translations.rb', line 4 def key @key end |
#locale ⇒ Object
Returns the value of attribute locale
4 5 6 |
# File 'lib/localeapp/missing_translations.rb', line 4 def locale @locale end |
#options ⇒ Object
Returns the value of attribute options
4 5 6 |
# File 'lib/localeapp/missing_translations.rb', line 4 def @options end |
Instance Method Details
#blacklisted? ⇒ Boolean
5 6 7 |
# File 'lib/localeapp/missing_translations.rb', line 5 def blacklisted? key_path.match(Localeapp.configuration.blacklisted_keys_pattern) end |
#key_path ⇒ Object
9 10 11 |
# File 'lib/localeapp/missing_translations.rb', line 9 def key_path [[:scope], key].compact.join('.') end |