class TableVariable
Use this class to pass in table-valued parameters when calling sproc, t_func and s_func.
Attributes
fields[R]
type[R]
values[R]
Public Class Methods
new(name, type, fields, values)
click to toggle source
# File lib/slacker_new/project/lib/helpers/common_helper.rb, line 109 def initialize(name, type, fields, values) @name = name.start_with?('@') ? name : '@' + name @type = type @fields = fields @values = values @usage = 0 end
Public Instance Methods
increment()
click to toggle source
# File lib/slacker_new/project/lib/helpers/common_helper.rb, line 125 def increment @usage += 1 end
name()
click to toggle source
# File lib/slacker_new/project/lib/helpers/common_helper.rb, line 121 def name @name + "_" + @usage.to_s end