Class: InfluxDB2::FluxColumn

Inherits:
Object
  • Object
show all
Defined in:
lib/influxdb2/client/flux_table.rb

Overview

This class represents a column header specification of FluxTable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index: nil, label: nil, data_type: nil, group: nil, default_value: nil) ⇒ FluxColumn

Returns a new instance of FluxColumn.



89
90
91
92
93
94
95
# File 'lib/influxdb2/client/flux_table.rb', line 89

def initialize(index: nil, label: nil, data_type: nil, group: nil, default_value: nil)
  @index = index
  @label = label
  @data_type = data_type
  @group = group
  @default_value = default_value
end

Instance Attribute Details

#data_typeObject

Returns the value of attribute data_type.



96
97
98
# File 'lib/influxdb2/client/flux_table.rb', line 96

def data_type
  @data_type
end

#default_valueObject

Returns the value of attribute default_value.



96
97
98
# File 'lib/influxdb2/client/flux_table.rb', line 96

def default_value
  @default_value
end

#groupObject

Returns the value of attribute group.



96
97
98
# File 'lib/influxdb2/client/flux_table.rb', line 96

def group
  @group
end

#indexObject

Returns the value of attribute index.



96
97
98
# File 'lib/influxdb2/client/flux_table.rb', line 96

def index
  @index
end

#labelObject

Returns the value of attribute label.



96
97
98
# File 'lib/influxdb2/client/flux_table.rb', line 96

def label
  @label
end