Class: Google::Apis::MonitoringV1::Text
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Text
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb
Overview
A widget that displays textual content.
Instance Attribute Summary collapse
-
#content ⇒ String
The text content to be displayed.
-
#format ⇒ String
How the text content is formatted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Text
constructor
A new instance of Text.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Text
Returns a new instance of Text.
897 898 899 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The text content to be displayed.
Corresponds to the JSON property content
890 891 892 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 890 def content @content end |
#format ⇒ String
How the text content is formatted.
Corresponds to the JSON property format
895 896 897 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 895 def format @format end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
902 903 904 905 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 902 def update!(**args) @content = args[:content] if args.key?(:content) @format = args[:format] if args.key?(:format) end |