Class: Google::Apis::FusiontablesV1::Sqlresponse
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV1::Sqlresponse
- 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
-
#columns ⇒ Array<String>
Columns in the table.
-
#kind ⇒ String
Type name: a template for an individual table.
-
#rows ⇒ Array<Array<Object>>
The rows in the table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sqlresponse
constructor
A new instance of Sqlresponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#columns ⇒ Array<String>
Columns in the table.
Corresponds to the JSON property columns
467 468 469 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 467 def columns @columns end |
#kind ⇒ String
Type name: a template for an individual table.
Corresponds to the JSON property kind
472 473 474 |
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 472 def kind @kind end |
#rows ⇒ Array<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
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 |