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.
7584 7585 7586 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7584 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ Fixnum
Corresponds to the JSON property type
7577 7578 7579 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7577 def type @type end |
#value ⇒ String
Corresponds to the JSON property value
7582 7583 7584 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7582 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7589 7590 7591 7592 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7589 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |