Class: Google::Apis::FusiontablesV2::Column::BaseColumn

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v2/classes.rb,
generated/google/apis/fusiontables_v2/representations.rb,
generated/google/apis/fusiontables_v2/representations.rb

Overview

Identifier of the base column. If present, this column is derived from the specified base column.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BaseColumn

Returns a new instance of BaseColumn.


204
205
206
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 204

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#column_idFixnum

The id of the column in the base table from which this column is derived. Corresponds to the JSON property columnId

Returns:

  • (Fixnum)

197
198
199
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 197

def column_id
  @column_id
end

#table_indexFixnum

Offset to the entry in the list of base tables in the table definition. Corresponds to the JSON property tableIndex

Returns:

  • (Fixnum)

202
203
204
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 202

def table_index
  @table_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


209
210
211
212
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 209

def update!(**args)
  @column_id = args[:column_id] if args.key?(:column_id)
  @table_index = args[:table_index] if args.key?(:table_index)
end