Class: Google::Apis::FusiontablesV2::Sqlresponse
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV2::Sqlresponse
- 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
-
#columns ⇒ Array<String>
Columns in the table.
-
#kind ⇒ String
The kind of item this is.
-
#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
538 539 540 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 538 def initialize(**args) update!(**args) end |
Instance Attribute Details
#columns ⇒ Array<String>
Columns in the table.
Corresponds to the JSON property columns
523 524 525 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 523 def columns @columns end |
#kind ⇒ String
The kind of item this is. For responses to SQL queries, this is always
fusiontables#sqlresponse.
Corresponds to the JSON property kind
529 530 531 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 529 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
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 |