Class: Google::Apis::CloudsearchV1::EventAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::EventAnnotation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#type ⇒ Fixnum
Corresponds to the JSON property
type
. -
#value ⇒ String
Corresponds to the JSON property
value
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventAnnotation
constructor
A new instance of EventAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EventAnnotation
Returns a new instance of EventAnnotation.
8845 8846 8847 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8845 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ Fixnum
Corresponds to the JSON property type
8838 8839 8840 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8838 def type @type end |
#value ⇒ String
Corresponds to the JSON property value
8843 8844 8845 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8843 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8850 8851 8852 8853 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8850 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |