Class: Inttegro::File::Media
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::Media
- Defined in:
- lib/inttegro/file/media.rb
Overview
Typed representation of the media object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ String?
readonly
Value of the
aspect_ratiofield in the Inttegro API payload. -
#codec ⇒ String?
readonly
Value of the
codecfield in the Inttegro API payload. -
#color_space ⇒ String?
readonly
Value of the
color_spacefield in the Inttegro API payload. -
#duration_ms ⇒ Integer?
readonly
Value of the
duration_msfield in the Inttegro API payload. -
#frame_count ⇒ Integer?
readonly
Value of the
frame_countfield in the Inttegro API payload. -
#has_alpha ⇒ Boolean?
readonly
Value of the
has_alphafield in the Inttegro API payload. -
#height ⇒ Integer?
readonly
Value of the
heightfield in the Inttegro API payload. -
#kind ⇒ String?
readonly
Value of the
kindfield in the Inttegro API payload. -
#page_count ⇒ Integer?
readonly
Value of the
page_countfield in the Inttegro API payload. -
#width ⇒ Integer?
readonly
Value of the
widthfield in the Inttegro API payload.
Instance Attribute Details
#aspect_ratio ⇒ String? (readonly)
Value of the aspect_ratio field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: aspect_ratio.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#codec ⇒ String? (readonly)
Value of the codec field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: codec.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#color_space ⇒ String? (readonly)
Value of the color_space field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: color_space.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#duration_ms ⇒ Integer? (readonly)
Value of the duration_ms field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: duration_ms.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#frame_count ⇒ Integer? (readonly)
Value of the frame_count field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: frame_count.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#has_alpha ⇒ Boolean? (readonly)
Value of the has_alpha field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: has_alpha.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#height ⇒ Integer? (readonly)
Value of the height field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: height.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#kind ⇒ String? (readonly)
Value of the kind field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: kind.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#page_count ⇒ Integer? (readonly)
Value of the page_count field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: page_count.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |
#width ⇒ Integer? (readonly)
Value of the width field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: width.
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/file/media.rb', line 77 class Media < T::Struct const :kind, T.nilable(String), default: nil const :width, T.nilable(Integer), default: nil const :height, T.nilable(Integer), default: nil const :duration_ms, T.nilable(Integer), default: nil const :page_count, T.nilable(Integer), default: nil const :frame_count, T.nilable(Integer), default: nil const :color_space, T.nilable(String), default: nil const :has_alpha, T.nilable(T::Boolean), default: nil const :codec, T.nilable(String), default: nil const :aspect_ratio, T.nilable(String), default: nil end |