Method: Result#initialize
- Defined in:
- lib/adobe_connect_api/result.rb
#initialize(status, rows) ⇒ Result
Returns a new instance of Result.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/adobe_connect_api/result.rb', line 11 def initialize (status, rows) @status = status @rows = [] if rows != nil rows.each do |row| hash = {} row.each_pair do |name, val| if val.is_a?(Array) hash[name] = val[0] else hash[name] = val end end @rows.push hash end end end |