Class: Imagekitio::Models::FileUploadParams::Transformation::Post::Transformation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::FileUploadParams::Transformation::Post::Transformation
- Defined in:
- lib/imagekitio/models/file_upload_params.rb,
sig/imagekitio/models/file_upload_params.rbs
Instance Attribute Summary collapse
-
#type ⇒ Symbol, :transformation
Transformation type.
-
#value ⇒ String
Transformation string (e.g.
w-200,h-200).
Instance Method Summary collapse
-
#initialize ⇒ Transformation
constructor
A new instance of Transformation.
- #to_hash ⇒ { type: :transformation, value: String }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, 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
#initialize ⇒ Transformation
Returns a new instance of Transformation.
251 |
# File 'sig/imagekitio/models/file_upload_params.rbs', line 251
def initialize: (value: String, ?type: :transformation) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :transformation
Transformation type.
423 |
# File 'lib/imagekitio/models/file_upload_params.rb', line 423 required :type, const: :transformation |
#value ⇒ String
Transformation string (e.g. w-200,h-200).
Same syntax as ImageKit URL-based transformations.
430 |
# File 'lib/imagekitio/models/file_upload_params.rb', line 430 required :value, String |
Instance Method Details
#to_hash ⇒ { type: :transformation, value: String }
253 |
# File 'sig/imagekitio/models/file_upload_params.rbs', line 253
def to_hash: -> { type: :transformation, value: String }
|