Class: Google::Apis::FusiontablesV1::Sqlresponse

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

Represents a response to an sql statement.

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) ⇒ Sqlresponse

Returns a new instance of Sqlresponse



481
482
483
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 481

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

Instance Attribute Details

#columnsArray<String>

Columns in the table. Corresponds to the JSON property columns

Returns:

  • (Array<String>)


467
468
469
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 467

def columns
  @columns
end

#kindString

Type name: a template for an individual table. Corresponds to the JSON property kind

Returns:

  • (String)


472
473
474
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 472

def kind
  @kind
end

#rowsArray<Array<Object>>

The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value. Corresponds to the JSON property rows

Returns:

  • (Array<Array<Object>>)


479
480
481
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 479

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



486
487
488
489
490
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 486

def update!(**args)
  @columns = args[:columns] if args.key?(:columns)
  @kind = args[:kind] if args.key?(:kind)
  @rows = args[:rows] if args.key?(:rows)
end