@@ -14,6 +14,16 @@ module Imagekit
1414 )
1515 end
1616
17+ # The folder path (e.g., `/path/to/folder`) for which to retrieve applicable
18+ # custom metadata fields.
19+ # Useful for determining path-specific field selections when the
20+ # [Path policy](https://imagekit.io/docs/dam/path-policy) feature is in use.
21+ sig { returns ( T . nilable ( String ) ) }
22+ attr_reader :folder_path
23+
24+ sig { params ( folder_path : String ) . void }
25+ attr_writer :folder_path
26+
1727 # Set it to `true` to include deleted field objects in the API response.
1828 sig { returns ( T . nilable ( T ::Boolean ) ) }
1929 attr_reader :include_deleted
@@ -23,11 +33,17 @@ module Imagekit
2333
2434 sig do
2535 params (
36+ folder_path : String ,
2637 include_deleted : T ::Boolean ,
2738 request_options : Imagekit ::RequestOptions ::OrHash
2839 ) . returns ( T . attached_class )
2940 end
3041 def self . new (
42+ # The folder path (e.g., `/path/to/folder`) for which to retrieve applicable
43+ # custom metadata fields.
44+ # Useful for determining path-specific field selections when the
45+ # [Path policy](https://imagekit.io/docs/dam/path-policy) feature is in use.
46+ folder_path : nil ,
3147 # Set it to `true` to include deleted field objects in the API response.
3248 include_deleted : nil ,
3349 request_options : { }
@@ -37,6 +53,7 @@ module Imagekit
3753 sig do
3854 override . returns (
3955 {
56+ folder_path : String ,
4057 include_deleted : T ::Boolean ,
4158 request_options : Imagekit ::RequestOptions
4259 }
0 commit comments