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


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

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

Instance Attribute Details

#display_nameString

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_opString

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

#nameString

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