Class: AWSCDK::ElementalInference::CfnFeed::AspectRatioProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElementalInference::CfnFeed::AspectRatioProperty
- Defined in:
- elemental_inference/cfn_feed.rb
Overview
Instance Attribute Summary collapse
- #height ⇒ Numeric readonly
- #width ⇒ Numeric readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(height:, width:) ⇒ AspectRatioProperty
constructor
A new instance of AspectRatioProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(height:, width:) ⇒ AspectRatioProperty
Returns a new instance of AspectRatioProperty.
545 546 547 548 549 550 |
# File 'elemental_inference/cfn_feed.rb', line 545 def initialize(height:, width:) @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "height") @width = width Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "width") end |
Instance Attribute Details
#height ⇒ Numeric (readonly)
554 555 556 |
# File 'elemental_inference/cfn_feed.rb', line 554 def height @height end |
#width ⇒ Numeric (readonly)
557 558 559 |
# File 'elemental_inference/cfn_feed.rb', line 557 def width @width end |
Class Method Details
.jsii_properties ⇒ Object
559 560 561 562 563 564 |
# File 'elemental_inference/cfn_feed.rb', line 559 def self.jsii_properties { :height => "height", :width => "width", } end |
Instance Method Details
#to_jsii ⇒ Object
566 567 568 569 570 571 572 573 |
# File 'elemental_inference/cfn_feed.rb', line 566 def to_jsii result = {} result.merge!({ "height" => @height, "width" => @width, }) result.compact end |