Class: XmlConv::View::TransactionComposite

Inherits:
HtmlGrid::Composite
  • Object
show all
Defined in:
lib/xmlconv/view/transaction.rb

Constant Summary collapse

COMPONENTS =
{
	[0,0]	=>	'th_input',
	[1,0]	=>	'th_output',
	[0,1]	=>	:input,
	[1,1]	=>	:output,
	[0,2]	=>	'th_error',
	[0,3]	=>	:error_string,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
	[0,0,2]	=>	'th',
	[0,1,2]	=>	'helfti preformatted',
	[0,2]		=>	'th',
	[0,3]		=>	'list preformatted bg',
}
COLSPAN_MAP =
{
	[0,2]	=>	2,
	[0,3]	=>	2,
}
DEFAULT_CLASS =
View::Preformatted
LEGACY_INTERFACE =
false

Instance Method Summary collapse

Instance Method Details

#error_string(model) ⇒ Object



32
33
34
35
36
# File 'lib/xmlconv/view/transaction.rb', line 32

def error_string(model)
	if(err = model.error)
		[err.class, err.message, err.backtrace].join("\n")
	end
end