class Google::Apis::CustomsearchV1::Result::Label

Refinement label associated with a custom search result.

Attributes

display_name[RW]

The display name of a refinement label. This is the name you should display in your user interface. Corresponds to the JSON property `displayName` @return [String]

label_with_op[RW]

Refinement label and the associated refinement operation. Corresponds to the JSON property `label_with_op` @return [String]

name[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/customsearch_v1/classes.rb, line 326
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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