Class: Google::Apis::MonitoringV1::Text
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::Text
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/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.
-
#style ⇒ Google::Apis::MonitoringV1::TextStyle
Properties that determine how the title and content are styled Corresponds to the JSON property
style.
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.
1660 1661 1662 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1660 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The text content to be displayed.
Corresponds to the JSON property content
1648 1649 1650 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1648 def content @content end |
#format ⇒ String
How the text content is formatted.
Corresponds to the JSON property format
1653 1654 1655 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1653 def format @format end |
#style ⇒ Google::Apis::MonitoringV1::TextStyle
Properties that determine how the title and content are styled
Corresponds to the JSON property style
1658 1659 1660 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1658 def style @style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1665 1666 1667 1668 1669 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1665 def update!(**args) @content = args[:content] if args.key?(:content) @format = args[:format] if args.key?(:format) @style = args[:style] if args.key?(:style) end |