Class: DatadogAPIClient::V1::WidgetRequestStyle
- Inherits:
-
Object
- Object
- DatadogAPIClient::V1::WidgetRequestStyle
- Defined in:
- lib/datadog_api_client/v1/models/widget_request_style.rb
Overview
Define request widget style.
Instance Attribute Summary collapse
-
#line_type ⇒ Object
Returns the value of attribute line_type.
-
#line_width ⇒ Object
Returns the value of attribute line_width.
-
#palette ⇒ Object
Color palette to apply to the widget.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ WidgetRequestStyle
constructor
Initializes the object.
Constructor Details
#initialize(attributes = {}) ⇒ WidgetRequestStyle
Initializes the object
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/datadog_api_client/v1/models/widget_request_style.rb', line 68 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V1::WidgetRequestStyle` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V1::WidgetRequestStyle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'line_type') self.line_type = attributes[:'line_type'] end if attributes.key?(:'line_width') self.line_width = attributes[:'line_width'] end if attributes.key?(:'palette') self.palette = attributes[:'palette'] end end |
Instance Attribute Details
#line_type ⇒ Object
Returns the value of attribute line_type.
26 27 28 |
# File 'lib/datadog_api_client/v1/models/widget_request_style.rb', line 26 def line_type @line_type end |
#line_width ⇒ Object
Returns the value of attribute line_width.
28 29 30 |
# File 'lib/datadog_api_client/v1/models/widget_request_style.rb', line 28 def line_width @line_width end |
#palette ⇒ Object
Color palette to apply to the widget.
31 32 33 |
# File 'lib/datadog_api_client/v1/models/widget_request_style.rb', line 31 def palette @palette end |