Class: Google::Apis::GenomicsV1beta2::KeyValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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

#keyString

A string which maps to an array of values. Corresponds to the JSON property key

Returns:

  • (String)


1146
1147
1148
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1146

def key
  @key
end

#valueArray<String>

The string values. Corresponds to the JSON property value

Returns:

  • (Array<String>)


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