Class: Google::Apis::CustomsearchV1::Result::Label
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Result::Label
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/google/apis/customsearch_v1/representations.rb
Overview
Refinement label associated with a custom search result.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name of a refinement label.
-
#label_with_op ⇒ String
Refinement label and the associated refinement operation.
-
#name ⇒ String
The name of a refinement label, which you can use to refine searches.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Label
constructor
A new instance of Label.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Label
Returns a new instance of Label.
326 327 328 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 326 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name of a refinement label. This is the name you should display in
your user interface.
Corresponds to the JSON property displayName
313 314 315 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 313 def display_name @display_name end |
#label_with_op ⇒ String
Refinement label and the associated refinement operation.
Corresponds to the JSON property label_with_op
318 319 320 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 318 def label_with_op @label_with_op end |
#name ⇒ String
The name of a refinement label, which you can use to refine searches. Don't
display this in your user interface; instead, use displayName.
Corresponds to the JSON property name
324 325 326 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 324 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
331 332 333 334 335 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 331 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @label_with_op = args[:label_with_op] if args.key?(:label_with_op) @name = args[:name] if args.key?(:name) end |