Method: Hoodoo::Errors#initialize
- Defined in:
- lib/hoodoo/errors/errors.rb
#initialize(descriptions = DEFAULT_ERROR_DESCRIPTIONS) ⇒ Errors
Create an instance.
descriptions
-
(Optional) Hoodoo::ErrorDescriptions instance with service-domain-specific error descriptions added, or omit for a default instance describing
platform
andgeneric
error domains only.
71 72 73 74 75 76 77 |
# File 'lib/hoodoo/errors/errors.rb', line 71 def initialize( descriptions = DEFAULT_ERROR_DESCRIPTIONS ) @uuid = Hoodoo::UUID.generate() @descriptions = descriptions @errors = [] @http_status_code = 200 @created_at = nil # See #persist! end |