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.



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

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)

Returns:



8
9
10
# File 'lib/stupidedi/editor/result_set.rb', line 8

def results
  @results
end

Instance Method Details

#ak905(*args) ⇒ Object



31
32
33
34
35
# File 'lib/stupidedi/editor/result_set.rb', line 31

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

#ik304(*args) ⇒ Object



37
38
39
40
41
# File 'lib/stupidedi/editor/result_set.rb', line 37

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

#ik403(*args) ⇒ Object



43
44
45
46
47
# File 'lib/stupidedi/editor/result_set.rb', line 43

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

#ik502(*args) ⇒ Object



49
50
51
52
53
# File 'lib/stupidedi/editor/result_set.rb', line 49

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

#stc01(*args) ⇒ Object



55
56
57
58
59
# File 'lib/stupidedi/editor/result_set.rb', line 55

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

#ta105(*args) ⇒ Object



25
26
27
28
29
# File 'lib/stupidedi/editor/result_set.rb', line 25

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

#warn(zipper, message) ⇒ Object



61
62
63
64
65
# File 'lib/stupidedi/editor/result_set.rb', line 61

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