Class: Pinot::RespSchema
- Inherits:
-
Object
- Object
- Pinot::RespSchema
- Defined in:
- lib/pinot/response.rb
Instance Attribute Summary collapse
-
#column_data_types ⇒ Object
readonly
Returns the value of attribute column_data_types.
-
#column_names ⇒ Object
readonly
Returns the value of attribute column_names.
Instance Method Summary collapse
-
#initialize(hash) ⇒ RespSchema
constructor
A new instance of RespSchema.
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_types ⇒ Object (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_names ⇒ Object (readonly)
Returns the value of attribute column_names.
31 32 33 |
# File 'lib/pinot/response.rb', line 31 def column_names @column_names end |