Class: DHS::Problems::Warnings

Inherits:
Base
  • Object
show all
Defined in:
lib/dhs/problems/warnings.rb

Direct Known Subclasses

Nested::Warnings

Instance Attribute Summary

Attributes inherited from Base

#codes, #messages, #raw, #record

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #add, #clear, #count, #each, #empty?, #get, #include?, #set, #size

Constructor Details

#initialize(raw, record = nil) ⇒ Warnings

Returns a new instance of Warnings.



6
7
8
9
10
11
# File 'lib/dhs/problems/warnings.rb', line 6

def initialize(raw, record = nil)
  @raw = raw
  @record = record
  @codes = {}.with_indifferent_access
  @messages = warnings_from_raw
end