Class: Google::Apis::CustomsearchV1::Result::Label

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Label

Returns a new instance of Label.



603
604
605
# File 'generated/google/apis/customsearch_v1/classes.rb', line 603

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


591
592
593
# File 'generated/google/apis/customsearch_v1/classes.rb', line 591

def display_name
  @display_name
end

#label_with_opString

Corresponds to the JSON property label_with_op

Returns:

  • (String)


596
597
598
# File 'generated/google/apis/customsearch_v1/classes.rb', line 596

def label_with_op
  @label_with_op
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


601
602
603
# File 'generated/google/apis/customsearch_v1/classes.rb', line 601

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



608
609
610
611
612
# File 'generated/google/apis/customsearch_v1/classes.rb', line 608

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