Class: AWSCDK::CloudWatch::SpacerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudWatch::SpacerProps
- Defined in:
- cloud_watch/spacer_props.rb
Overview
Props of the spacer.
Instance Attribute Summary collapse
-
#height ⇒ Numeric?
readonly
Height of the spacer.
-
#width ⇒ Numeric?
readonly
Width of the spacer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(height: nil, width: nil) ⇒ SpacerProps
constructor
A new instance of SpacerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(height: nil, width: nil) ⇒ SpacerProps
Returns a new instance of SpacerProps.
9 10 11 12 13 14 |
# File 'cloud_watch/spacer_props.rb', line 9 def initialize(height: nil, width: nil) @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "height") unless @height.nil? @width = width Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "width") unless @width.nil? end |
Instance Attribute Details
#height ⇒ Numeric? (readonly)
Note:
Default: : 1
Height of the spacer.
20 21 22 |
# File 'cloud_watch/spacer_props.rb', line 20 def height @height end |
#width ⇒ Numeric? (readonly)
Note:
Default: 1
Width of the spacer.
25 26 27 |
# File 'cloud_watch/spacer_props.rb', line 25 def width @width end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'cloud_watch/spacer_props.rb', line 27 def self.jsii_properties { :height => "height", :width => "width", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'cloud_watch/spacer_props.rb', line 34 def to_jsii result = {} result.merge!({ "height" => @height, "width" => @width, }) result.compact end |