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.



93
94
95
96
97
98
99
# File 'lib/influxdb2/client/flux_table.rb', line 93

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.



101
102
103
# File 'lib/influxdb2/client/flux_table.rb', line 101

def data_type
  @data_type
end

#default_valueObject

Returns the value of attribute default_value.



101
102
103
# File 'lib/influxdb2/client/flux_table.rb', line 101

def default_value
  @default_value
end

#groupObject

Returns the value of attribute group.



101
102
103
# File 'lib/influxdb2/client/flux_table.rb', line 101

def group
  @group
end

#indexObject

Returns the value of attribute index.



101
102
103
# File 'lib/influxdb2/client/flux_table.rb', line 101

def index
  @index
end

#labelObject

Returns the value of attribute label.



101
102
103
# File 'lib/influxdb2/client/flux_table.rb', line 101

def label
  @label
end