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



2
3
4
# File 'lib/localeapp/missing_translations.rb', line 2

def description
  @description
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



2
3
4
# File 'lib/localeapp/missing_translations.rb', line 2

def key
  @key
end

#localeObject

Returns the value of attribute locale

Returns:

  • (Object)

    the current value of locale



2
3
4
# File 'lib/localeapp/missing_translations.rb', line 2

def locale
  @locale
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



2
3
4
# File 'lib/localeapp/missing_translations.rb', line 2

def options
  @options
end

Instance Method Details

#blacklisted?Boolean

Returns:

  • (Boolean)


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

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

#key_pathObject



7
8
9
# File 'lib/localeapp/missing_translations.rb', line 7

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