Sha256: f552646680b48faa0d475aa0d9ef544a0cd7300fb3419360eae76b221fde23e8

Contents?: true

Size: 423 Bytes

Versions: 239

Compression:

Stored size: 423 Bytes

Contents

module ActiveScaffold::DataStructures
  # Wrapper for error strings so that they may be exported using to_xxx
  class ErrorMessage
    def initialize(error)
      @error = error
    end

    def public_attributes
      { :error => @error }
    end

    def to_xml
      public_attributes.to_xml(:root => "errors")
    end

    def to_yaml
      public_attributes.to_yaml
    end

    def to_s
      @error
    end
  end
end

Version data entries

239 entries across 239 versions & 9 rubygems

Version Path
six-updater-web-0.23.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.23.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.23.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.22.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.22.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.22.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.22.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.22.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.6 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.2 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.1 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.21.0 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.20.8 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.20.7 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.20.5 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.20.4 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb
six-updater-web-0.20.3 lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/data_structures/error_message.rb