Class: Google::Apis::CustomsearchV1::Context::Facet

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) ⇒ Facet

Returns a new instance of Facet.


68
69
70
# File 'generated/google/apis/customsearch_v1/classes.rb', line 68

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

Instance Attribute Details

#anchorString

Corresponds to the JSON property anchor

Returns:

  • (String)

56
57
58
# File 'generated/google/apis/customsearch_v1/classes.rb', line 56

def anchor
  @anchor
end

#labelString

Corresponds to the JSON property label

Returns:

  • (String)

61
62
63
# File 'generated/google/apis/customsearch_v1/classes.rb', line 61

def label
  @label
end

#label_with_opString

Corresponds to the JSON property label_with_op

Returns:

  • (String)

66
67
68
# File 'generated/google/apis/customsearch_v1/classes.rb', line 66

def label_with_op
  @label_with_op
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


73
74
75
76
77
# File 'generated/google/apis/customsearch_v1/classes.rb', line 73

def update!(**args)
  @anchor = args[:anchor] if args.key?(:anchor)
  @label = args[:label] if args.key?(:label)
  @label_with_op = args[:label_with_op] if args.key?(:label_with_op)
end