Skip to content

Commit 766ded9

Browse files
committed
feat: add get_responsive_image_attributes method with options parameter
1 parent 525a5aa commit 766ded9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

rbi/imagekit/helpers/helper.rbi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ module Imagekit
2929
end
3030
def get_authentication_parameters(token = nil, expire = nil)
3131
end
32+
33+
# Generates responsive image attributes for use in HTML <img> tags
34+
sig do
35+
params(options: Imagekit::Models::GetImageAttributesOptions).returns(
36+
Imagekit::Models::ResponsiveImageAttributes
37+
)
38+
end
39+
def get_responsive_image_attributes(options)
40+
end
3241
end
3342
end
3443
end

sig/imagekit/helpers/helper.rbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ module Imagekit
1616
?String? token,
1717
?Integer? expire
1818
) -> Hash[Symbol, (String | Integer)]
19+
20+
# Generates responsive image attributes for use in HTML <img> tags
21+
def get_responsive_image_attributes: (
22+
Imagekit::Models::GetImageAttributesOptions options
23+
) -> Imagekit::Models::ResponsiveImageAttributes
1924
end
2025
end
2126
end

0 commit comments

Comments
 (0)