Class: Google::Apis::FusiontablesV2::Sqlresponse

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

Represents a response to a 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



538
539
540
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 538

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

Instance Attribute Details

#columnsArray<String>

Columns in the table. Corresponds to the JSON property columns

Returns:

  • (Array<String>)


523
524
525
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 523

def columns
  @columns
end

#kindString

The kind of item this is. For responses to SQL queries, this is always fusiontables#sqlresponse. Corresponds to the JSON property kind

Returns:

  • (String)


529
530
531
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 529

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


536
537
538
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 536

def rows
  @rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



543
544
545
546
547
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 543

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