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.
8781 8782 8783 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ Fixnum
Corresponds to the JSON property type
8774 8775 8776 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8774 def type @type end |
#value ⇒ String
Corresponds to the JSON property value
8779 8780 8781 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8779 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8786 8787 8788 8789 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8786 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |