Class: Imagekitio::Models::FileUploadParams::Transformation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/file_upload_params.rb

Defined Under Namespace

Modules: Post

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

#==, ==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

This class inherits a constructor from Imagekitio::Internal::Type::BaseModel

Instance Attribute Details

#postArray<Imagekitio::Models::FileUploadParams::Transformation::Post::Transformation, Imagekitio::Models::FileUploadParams::Transformation::Post::GifToVideo, Imagekitio::Models::FileUploadParams::Transformation::Post::Thumbnail, Imagekitio::Models::FileUploadParams::Transformation::Post::Abs>?

List of transformations to apply after the file is uploaded. Each item must match one of the following types: ‘transformation`, `gif-to-video`, `thumbnail`, `abs`.



375
376
# File 'lib/imagekitio/models/file_upload_params.rb', line 375

optional :post,
-> { Imagekitio::Internal::Type::ArrayOf[union: Imagekitio::FileUploadParams::Transformation::Post] }

#preString?

Transformation string to apply before uploading the file to the Media Library. Useful for optimizing files at ingestion.

Returns:

  • (String, nil)


383
# File 'lib/imagekitio/models/file_upload_params.rb', line 383

optional :pre, String