Class: Google::Apis::CustomsearchV1::Result::Label
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Result::Label
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
generated/google/apis/customsearch_v1/representations.rb,
generated/google/apis/customsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#display_name ⇒ String
Corresponds to the JSON property
displayName
. -
#label_with_op ⇒ String
Corresponds to the JSON property
label_with_op
. -
#name ⇒ String
Corresponds to the JSON property
name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Label
constructor
A new instance of Label.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Label
Returns a new instance of Label
609 610 611 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 609 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Corresponds to the JSON property displayName
597 598 599 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 597 def display_name @display_name end |
#label_with_op ⇒ String
Corresponds to the JSON property label_with_op
602 603 604 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 602 def label_with_op @label_with_op end |
#name ⇒ String
Corresponds to the JSON property name
607 608 609 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 607 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
614 615 616 617 618 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 614 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 |