Class: Google::Apis::CloudsearchV1::TextKeyValue
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::TextKeyValue
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
This is deprecated and please use KeyValue.
Instance Attribute Summary collapse
-
#key ⇒ String
Corresponds to the JSON property
key. -
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property
onClick. -
#text ⇒ String
Corresponds to the JSON property
text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextKeyValue
constructor
A new instance of TextKeyValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextKeyValue
Returns a new instance of TextKeyValue.
19207 19208 19209 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19207 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Corresponds to the JSON property key
19195 19196 19197 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19195 def key @key end |
#on_click ⇒ Google::Apis::CloudsearchV1::OnClick
Corresponds to the JSON property onClick
19200 19201 19202 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19200 def on_click @on_click end |
#text ⇒ String
Corresponds to the JSON property text
19205 19206 19207 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19205 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19212 19213 19214 19215 19216 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19212 def update!(**args) @key = args[:key] if args.key?(:key) @on_click = args[:on_click] if args.key?(:on_click) @text = args[:text] if args.key?(:text) end |