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

Returns a new instance of ResultSet.


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

def initialize
  @results = []

  #efault  = 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)

Returns:


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

def results
  @results
end

Instance Method Details

#ak905(*args)


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

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

#ik304(*args)


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

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

#ik403(*args)


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

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

#ik502(*args)


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

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

#stc01(*args)


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

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

#ta105(*args)


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

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

#warn(zipper, message)


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

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