Exception: Para::Exporter::MissingExporterError
- Inherits:
-
StandardError
- Object
- StandardError
- Para::Exporter::MissingExporterError
- Defined in:
- lib/para/exporter.rb
Instance Attribute Summary collapse
-
#exporter_name ⇒ Object
Returns the value of attribute exporter_name.
-
#format ⇒ Object
Returns the value of attribute format.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
Instance Method Summary collapse
-
#initialize(model_name, format, exporter_name) ⇒ MissingExporterError
constructor
A new instance of MissingExporterError.
- #message ⇒ Object
Constructor Details
#initialize(model_name, format, exporter_name) ⇒ MissingExporterError
Returns a new instance of MissingExporterError.
6 7 8 9 10 |
# File 'lib/para/exporter.rb', line 6 def initialize(model_name, format, exporter_name) @model_name = model_name @format = format @exporter_name = exporter_name end |
Instance Attribute Details
#exporter_name ⇒ Object
Returns the value of attribute exporter_name.
4 5 6 |
# File 'lib/para/exporter.rb', line 4 def exporter_name @exporter_name end |
#format ⇒ Object
Returns the value of attribute format.
4 5 6 |
# File 'lib/para/exporter.rb', line 4 def format @format end |
#model_name ⇒ Object
Returns the value of attribute model_name.
4 5 6 |
# File 'lib/para/exporter.rb', line 4 def model_name @model_name end |
Instance Method Details
#message ⇒ Object
12 13 14 15 16 17 |
# File 'lib/para/exporter.rb', line 12 def "No exporter found for model \"#{ model_name }\" and format " + "\"#{ format }\". Please create the #{ exporter_name } class " + "manually or with the following command : " + "`rails g para:exporter #{ model_name.underscore } #{ format }" end |