Class: Google::Apis::CustomsearchV1::Context::Facet
- Inherits:
-
Object
- Object
- Google::Apis::CustomsearchV1::Context::Facet
- 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
-
#anchor ⇒ String
Corresponds to the JSON property
anchor
. -
#label ⇒ String
Corresponds to the JSON property
label
. -
#label_with_op ⇒ String
Corresponds to the JSON property
label_with_op
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Facet
constructor
A new instance of Facet.
-
#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) ⇒ 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
#anchor ⇒ String
Corresponds to the JSON property anchor
56 57 58 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 56 def anchor @anchor end |
#label ⇒ String
Corresponds to the JSON property label
61 62 63 |
# File 'generated/google/apis/customsearch_v1/classes.rb', line 61 def label @label end |
#label_with_op ⇒ String
Corresponds to the JSON property label_with_op
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 |