Class: Google::Apis::GenomicsV1beta2::KeyValue
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1beta2::KeyValue
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/genomics_v1beta2/classes.rb,
generated/google/apis/genomics_v1beta2/representations.rb,
generated/google/apis/genomics_v1beta2/representations.rb
Overview
Used to hold basic key value information.
Instance Attribute Summary collapse
-
#key ⇒ String
A string which maps to an array of values.
-
#value ⇒ Array<String>
The string values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyValue
constructor
A new instance of KeyValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ KeyValue
Returns a new instance of KeyValue.
1153 1154 1155 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
A string which maps to an array of values.
Corresponds to the JSON property key
1146 1147 1148 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1146 def key @key end |
#value ⇒ Array<String>
The string values.
Corresponds to the JSON property value
1151 1152 1153 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1151 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1158 1159 1160 1161 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1158 def update!(**args) @key = args[:key] unless args[:key].nil? @value = args[:value] unless args[:value].nil? end |