Class: Google::Apis::FusiontablesV1::Column::BaseColumn

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

Overview

Optional 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



149
150
151
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 149

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)


142
143
144
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 142

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)


147
148
149
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 147

def table_index
  @table_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



154
155
156
157
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 154

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