class SCB::DB::Variable
Attributes
data[R]
Public Class Methods
new(data)
click to toggle source
# File lib/scb/db/variable.rb, line 8 def initialize(data) @data = data end
Public Instance Methods
code()
click to toggle source
# File lib/scb/db/variable.rb, line 12 def code data["code"] end
elimination?()
click to toggle source
# File lib/scb/db/variable.rb, line 32 def elimination? !!data["elimination"] end
text()
click to toggle source
# File lib/scb/db/variable.rb, line 16 def text data["text"] end
time?()
click to toggle source
# File lib/scb/db/variable.rb, line 36 def time? !!data["time"] end
value_texts()
click to toggle source
# File lib/scb/db/variable.rb, line 28 def value_texts data["valueTexts"] end
values()
click to toggle source
# File lib/scb/db/variable.rb, line 20 def values data["values"] end
values_hash()
click to toggle source
# File lib/scb/db/variable.rb, line 24 def values_hash @values_hash ||= Hash[values.zip(value_texts)] end