class ActiveScaffold::DataStructures::ErrorMessage
Wrapper for error strings so that they may be exported using to_xxx
Public Class Methods
new(error)
click to toggle source
# File lib/active_scaffold/data_structures/error_message.rb, line 4 def initialize(error) @error = error end
Public Instance Methods
public_attributes()
click to toggle source
# File lib/active_scaffold/data_structures/error_message.rb, line 8 def public_attributes {:error => @error} end
to_s()
click to toggle source
# File lib/active_scaffold/data_structures/error_message.rb, line 18 def to_s @error end
to_xml()
click to toggle source
# File lib/active_scaffold/data_structures/error_message.rb, line 12 def to_xml public_attributes.to_xml(:root => 'errors') end