Class: Pinot::RespSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/pinot/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ RespSchema

Returns a new instance of RespSchema.



33
34
35
36
# File 'lib/pinot/response.rb', line 33

def initialize(hash)
  @column_names = hash["columnNames"] || []
  @column_data_types = hash["columnDataTypes"] || []
end

Instance Attribute Details

#column_data_typesObject (readonly)

Returns the value of attribute column_data_types.



31
32
33
# File 'lib/pinot/response.rb', line 31

def column_data_types
  @column_data_types
end

#column_namesObject (readonly)

Returns the value of attribute column_names.



31
32
33
# File 'lib/pinot/response.rb', line 31

def column_names
  @column_names
end