Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .oas-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.4
1.10.7
20 changes: 16 additions & 4 deletions lib/shotstack/models/rich_text_background.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ class RichTextBackground
# The border radius of the background box in pixels. Must be 0 or greater.
attr_accessor :border_radius

# When true, the background pill shrinks to fit the rendered text bounding box plus the asset's padding (and stroke width, if present), producing a pill or badge effect. When false (default), the background fills the full asset content area. Available on rich-text and rich-caption assets only; not supported on legacy `type: text`.
attr_accessor :wrap

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'color' => :'color',
:'opacity' => :'opacity',
:'border_radius' => :'borderRadius'
:'border_radius' => :'borderRadius',
:'wrap' => :'wrap'
}
end

Expand All @@ -44,7 +48,8 @@ def self.openapi_types
{
:'color' => :'String',
:'opacity' => :'Float',
:'border_radius' => :'Float'
:'border_radius' => :'Float',
:'wrap' => :'Boolean'
}
end

Expand Down Expand Up @@ -84,6 +89,12 @@ def initialize(attributes = {})
else
self.border_radius = 0
end

if attributes.key?(:'wrap')
self.wrap = attributes[:'wrap']
else
self.wrap = false
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -176,7 +187,8 @@ def ==(o)
self.class == o.class &&
color == o.color &&
opacity == o.opacity &&
border_radius == o.border_radius
border_radius == o.border_radius &&
wrap == o.wrap
end

# @see the `==` method
Expand All @@ -188,7 +200,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[color, opacity, border_radius].hash
[color, opacity, border_radius, wrap].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/shotstack/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module Shotstack
VERSION = '1.10.4'
VERSION = '1.10.7'
end