Class: Google::Apis::MonitoringV1::Text

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Text

Returns a new instance of Text.



830
831
832
# File 'generated/google/apis/monitoring_v1/classes.rb', line 830

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentString

The text content to be displayed. Corresponds to the JSON property content

Returns:

  • (String)


823
824
825
# File 'generated/google/apis/monitoring_v1/classes.rb', line 823

def content
  @content
end

#formatString

How the text content is formatted. Corresponds to the JSON property format

Returns:

  • (String)


828
829
830
# File 'generated/google/apis/monitoring_v1/classes.rb', line 828

def format
  @format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



835
836
837
838
# File 'generated/google/apis/monitoring_v1/classes.rb', line 835

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @format = args[:format] if args.key?(:format)
end