Class: Stupidedi::Editor::ResultSet

Inherits:
Object
  • Object
show all
Includes:
Inspect
Defined in:
lib/stupidedi/editor/result_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Inspect

#inspect

Constructor Details

#initializeResultSet


13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/stupidedi/editor/result_set.rb', line 13

def initialize
  @results = []

  default  = lambda{|h,z| h[z] = [] }
  @ta105s  = [] # Hash.new(&default)
  @ak905s  = [] # Hash.new(&default)
  @ik304s  = [] # Hash.new(&default)
  @ik403s  = [] # Hash.new(&default)
  @ik502s  = [] # Hash.new(&default)
  @cscs    = [] # Hash.new(&default)
  @csccs   = [] # Hash.new(&default)
  @eics    = [] # Hash.new(&default)
  @warns   = []
end

Instance Attribute Details

#resultsArray<Result> (readonly)


11
12
13
# File 'lib/stupidedi/editor/result_set.rb', line 11

def results
  @results
end

Instance Method Details

#ak905(*args)


34
35
36
37
38
# File 'lib/stupidedi/editor/result_set.rb', line 34

def ak905(*args)
  result = AK905.new(*args)
  @results << result
  @ak905s  << result
end

#ik304(*args)


40
41
42
43
44
# File 'lib/stupidedi/editor/result_set.rb', line 40

def ik304(*args)
  result = IK304.new(*args)
  @results << result
  @ik304s  << result
end

#ik403(*args)


46
47
48
49
50
# File 'lib/stupidedi/editor/result_set.rb', line 46

def ik403(*args)
  result = IK403.new(*args)
  @results << result
  @ik403s  << result
end

#ik502(*args)


52
53
54
55
56
# File 'lib/stupidedi/editor/result_set.rb', line 52

def ik502(*args)
  result = IK502.new(*args)
  @results << result
  @ik502s  << result
end

#stc01(*args)


58
59
60
61
62
# File 'lib/stupidedi/editor/result_set.rb', line 58

def stc01(*args)
# result = ClaimStatus.new(*args)
# @results << result
# @cscs    << result
end

#ta105(*args)


28
29
30
31
32
# File 'lib/stupidedi/editor/result_set.rb', line 28

def ta105(*args)
  result = TA105.new(*args)
  @results << result
  @ta105s  << result
end

#warn(zipper, message)


64
65
66
67
68
# File 'lib/stupidedi/editor/result_set.rb', line 64

def warn(zipper, message)
  result = Warning.new(zipper, message)
  @results << result
  @warns   << result
end