Class Fusioncharts::Exporter::FcExporter
In: lib/fusioncharts/exporter/fc_exporter.rb
Parent: Object

FusionCharts Export Handler. Checks whether parameters are in order before delegating the export process to the apppropriate Export Handler resource.

Methods

Attributes

exportaction  [R] 
exportfilename  [R] 
exportformat  [R] 
exporttargetwindow  [R] 
meta  [R] 
parsed_params  [R]  Can access these attributes

Public Class methods

Initialize the parameters.

Public Instance methods

Converts the export parameters into a hash.

Before calling this method, validate should have been called. This method does not validate for save again

Returns the extension for the given format.

Checks which export handler resource has to be invoked for this format and returns that class.

Returns the mime type for the given extension.

Parse the request parameters and store in a hash

Parse the export parameters and update the default_parameter_values hash

Returns the stream

Validates the parameters, the server status for save etc. All exceptions need to be handled in the caller.

Check if server is ready for save action

Check if width, height, bgColor and stream parameters are valid.

Private Instance methods

Checks whether the class with given name exists or not.

  • parameter class_name_str : The complete name of the class including the package.

[Validate]