Class: Imagekitio::Models::Metadata
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Imagekitio::Models::Metadata
- Defined in:
- lib/imagekitio/models/metadata.rb
Defined Under Namespace
Classes: Exif
Instance Attribute Summary collapse
-
#audio_codec ⇒ String?
The audio codec used in the video (only for video).
-
#bit_rate ⇒ Integer?
The bit rate of the video in kbps (only for video).
-
#density ⇒ Integer?
The density of the image in DPI.
-
#duration ⇒ Integer?
The duration of the video in seconds (only for video).
- #exif ⇒ Imagekitio::Models::Metadata::Exif?
-
#format_ ⇒ String?
The format of the file (e.g., ‘jpg’, ‘mp4’).
-
#has_color_profile ⇒ Boolean?
Indicates if the image has a color profile.
-
#has_transparency ⇒ Boolean?
Indicates if the image contains transparent areas.
-
#height ⇒ Integer?
The height of the image or video in pixels.
-
#p_hash ⇒ String?
Perceptual hash of the image.
-
#quality ⇒ Integer?
The quality indicator of the image.
-
#size ⇒ Integer?
The file size in bytes.
-
#video_codec ⇒ String?
The video codec used in the video (only for video).
-
#width ⇒ Integer?
The width of the image or video in pixels.
Instance Method Summary collapse
-
#initialize(audio_codec: nil, bit_rate: nil, density: nil, duration: nil, exif: nil, format_: nil, has_color_profile: nil, has_transparency: nil, height: nil, p_hash: nil, quality: nil, size: nil, video_codec: nil, width: nil) ⇒ Object
constructor
JSON object containing metadata.
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(audio_codec: nil, bit_rate: nil, density: nil, duration: nil, exif: nil, format_: nil, has_color_profile: nil, has_transparency: nil, height: nil, p_hash: nil, quality: nil, size: nil, video_codec: nil, width: nil) ⇒ Object
JSON object containing metadata.
|
|
# File 'lib/imagekitio/models/metadata.rb', line 89
|
Instance Attribute Details
#audio_codec ⇒ String?
The audio codec used in the video (only for video).
10 |
# File 'lib/imagekitio/models/metadata.rb', line 10 optional :audio_codec, String, api_name: :audioCodec |
#bit_rate ⇒ Integer?
The bit rate of the video in kbps (only for video).
16 |
# File 'lib/imagekitio/models/metadata.rb', line 16 optional :bit_rate, Integer, api_name: :bitRate |
#density ⇒ Integer?
The density of the image in DPI.
22 |
# File 'lib/imagekitio/models/metadata.rb', line 22 optional :density, Integer |
#duration ⇒ Integer?
The duration of the video in seconds (only for video).
28 |
# File 'lib/imagekitio/models/metadata.rb', line 28 optional :duration, Integer |
#exif ⇒ Imagekitio::Models::Metadata::Exif?
33 |
# File 'lib/imagekitio/models/metadata.rb', line 33 optional :exif, -> { Imagekitio::Metadata::Exif } |
#format_ ⇒ String?
The format of the file (e.g., ‘jpg’, ‘mp4’).
39 |
# File 'lib/imagekitio/models/metadata.rb', line 39 optional :format_, String, api_name: :format |
#has_color_profile ⇒ Boolean?
Indicates if the image has a color profile.
45 |
# File 'lib/imagekitio/models/metadata.rb', line 45 optional :has_color_profile, Imagekitio::Internal::Type::Boolean, api_name: :hasColorProfile |
#has_transparency ⇒ Boolean?
Indicates if the image contains transparent areas.
51 |
# File 'lib/imagekitio/models/metadata.rb', line 51 optional :has_transparency, Imagekitio::Internal::Type::Boolean, api_name: :hasTransparency |
#height ⇒ Integer?
The height of the image or video in pixels.
57 |
# File 'lib/imagekitio/models/metadata.rb', line 57 optional :height, Integer |
#p_hash ⇒ String?
Perceptual hash of the image.
63 |
# File 'lib/imagekitio/models/metadata.rb', line 63 optional :p_hash, String, api_name: :pHash |
#quality ⇒ Integer?
The quality indicator of the image.
69 |
# File 'lib/imagekitio/models/metadata.rb', line 69 optional :quality, Integer |
#size ⇒ Integer?
The file size in bytes.
75 |
# File 'lib/imagekitio/models/metadata.rb', line 75 optional :size, Integer |
#video_codec ⇒ String?
The video codec used in the video (only for video).
81 |
# File 'lib/imagekitio/models/metadata.rb', line 81 optional :video_codec, String, api_name: :videoCodec |
#width ⇒ Integer?
The width of the image or video in pixels.
87 |
# File 'lib/imagekitio/models/metadata.rb', line 87 optional :width, Integer |