lib/stack_one/models/shared/content.rb in stackone_client-0.2.6 vs lib/stack_one/models/shared/content.rb in stackone_client-0.2.7

- old
+ new

@@ -11,16 +11,19 @@ class Content < ::StackOne::Utils::FieldAugmented extend T::Sig # The file format of the file field :file_format, T.nilable(::StackOne::Shared::FileFormat), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('file_format') } } + # Unified URL where the file content is located + field :unified_url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('unified_url') } } # URL where the file content is located field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('url') } } - sig { params(file_format: T.nilable(::StackOne::Shared::FileFormat), url: T.nilable(::String)).void } - def initialize(file_format: nil, url: nil) + sig { params(file_format: T.nilable(::StackOne::Shared::FileFormat), unified_url: T.nilable(::String), url: T.nilable(::String)).void } + def initialize(file_format: nil, unified_url: nil, url: nil) @file_format = file_format + @unified_url = unified_url @url = url end end end end