Class: Google::Apis::AlertcenterV1beta1::Csv
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::Csv
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/alertcenter_v1beta1/classes.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb,
generated/google/apis/alertcenter_v1beta1/representations.rb
Overview
A representation of a CSV file attachment, as a list of column headers and a list of data rows.
Instance Attribute Summary collapse
-
#data_rows ⇒ Array<Google::Apis::AlertcenterV1beta1::CsvRow>
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
-
#headers ⇒ Array<String>
The list of headers for data columns in a CSV file.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Csv
constructor
A new instance of Csv.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Csv
Returns a new instance of Csv
294 295 296 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 294 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_rows ⇒ Array<Google::Apis::AlertcenterV1beta1::CsvRow>
The list of data rows in a CSV file, as string arrays rather than as a
single comma-separated string.
Corresponds to the JSON property dataRows
287 288 289 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 287 def data_rows @data_rows end |
#headers ⇒ Array<String>
The list of headers for data columns in a CSV file.
Corresponds to the JSON property headers
292 293 294 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 292 def headers @headers end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
299 300 301 302 |
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 299 def update!(**args) @data_rows = args[:data_rows] if args.key?(:data_rows) @headers = args[:headers] if args.key?(:headers) end |