Class: Imagekitio::Models::FileUploadParams::Transformation::Post::Thumbnail
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::FileUploadParams::Transformation::Post::Thumbnail
- Defined in:
- lib/imagekitio/models/file_upload_params.rb,
sig/imagekitio/models/file_upload_params.rbs
Instance Attribute Summary collapse
-
#type ⇒ Symbol, :thumbnail
Generates a thumbnail image.
-
#value ⇒ String?
Optional transformation string.
Instance Method Summary collapse
-
#initialize ⇒ Thumbnail
constructor
A new instance of Thumbnail.
- #to_hash ⇒ { type: :thumbnail, 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 ⇒ Thumbnail
Returns a new instance of Thumbnail.
279 |
# File 'sig/imagekitio/models/file_upload_params.rbs', line 279
def initialize: (?value: String, ?type: :thumbnail) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :thumbnail
Generates a thumbnail image.
471 |
# File 'lib/imagekitio/models/file_upload_params.rb', line 471 required :type, const: :thumbnail |
#value ⇒ String?
Optional transformation string.
Example: w-150,h-150
478 |
# File 'lib/imagekitio/models/file_upload_params.rb', line 478 optional :value, String |
Instance Method Details
#to_hash ⇒ { type: :thumbnail, value: String }
281 |
# File 'sig/imagekitio/models/file_upload_params.rbs', line 281
def to_hash: -> { type: :thumbnail, value: String }
|