Exception: RDockerize::Errors::Base

Inherits:
StandardError
  • Object
show all
Defined in:
lib/r_dockerize/errors/base.rb

Constant Summary collapse

BASE_KEY =
"r_dockerize.errors.messages"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



8
9
10
# File 'lib/r_dockerize/errors/base.rb', line 8

def attrs
  @attrs
end

#keyObject (readonly)

Returns the value of attribute key.



8
9
10
# File 'lib/r_dockerize/errors/base.rb', line 8

def key
  @key
end

Instance Method Details

#create_messageObject



10
11
12
# File 'lib/r_dockerize/errors/base.rb', line 10

def create_message
  I18n.t("#{BASE_KEY}.#{key}", **{ locale: :en }.merge(attrs))
end