Class: ImpExp::Serializers::Errors::WrongFormat

Inherits:
Base
  • Object
show all
Defined in:
app/services/imp_exp/serializers/errors/wrong_format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_message = nil) ⇒ WrongFormat

Returns a new instance of WrongFormat.



9
10
11
12
# File 'app/services/imp_exp/serializers/errors/wrong_format.rb', line 9

def initialize(raw_message = nil)
  super()
  @raw_message = raw_message
end

Instance Attribute Details

#raw_messageObject (readonly)

Returns the value of attribute raw_message.



7
8
9
# File 'app/services/imp_exp/serializers/errors/wrong_format.rb', line 7

def raw_message
  @raw_message
end

Instance Method Details

#messageObject



14
15
16
# File 'app/services/imp_exp/serializers/errors/wrong_format.rb', line 14

def message
  I18n.t('imp_exp.importer.wrong_format', message: raw_message)
end