class Ittybit::File
def initialize(id:, media_id:, object:, kind:, type:, filesize:, url:, created:, updated:, status:, codec: OMIT, container: OMIT, width: OMIT, height: OMIT,
-
(Ittybit::File)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
status
(Ittybit::FileStatus
) -- -
updated
(DateTime
) -- -
created
(DateTime
) -- -
created_by
(String
) -- -
original
(Boolean
) -- -
metadata
(Hash{String => Object}
) -- -
background
(String
) -- -
placeholder
(String
) -- -
url
(String
) -- -
filename
(String
) -- -
folder
(String
) -- -
ref
(String
) -- -
label
(String
) -- -
language
(String
) -- -
bitrate
(Integer
) -- -
filesize
(Integer
) -- -
fps
(Float
) -- -
duration
(Float
) -- -
frames
(Integer
) -- -
animated
(Boolean
) -- -
transparency
(Boolean
) -- -
rotation
(Float
) -- -
orientation
(String
) -- -
height
(Integer
) -- -
width
(Integer
) -- -
container
(String
) -- -
codec
(String
) -- -
type
(String
) -- -
kind
(Ittybit::FileKind
) -- -
object
(Ittybit::FileObject
) -- -
media_id
(String
) -- -
id
(String
) --
def initialize(id:, media_id:, object:, kind:, type:, filesize:, url:, created:, updated:, status:, codec: OMIT, container: OMIT, width: OMIT, height: OMIT, orientation: OMIT, rotation: OMIT, transparency: OMIT, animated: OMIT, frames: OMIT, duration: OMIT, fps: OMIT, bitrate: OMIT, language: OMIT, label: OMIT, ref: OMIT, folder: OMIT, filename: OMIT, placeholder: OMIT, background: OMIT, metadata: OMIT, original: OMIT, created_by: OMIT, additional_properties: nil) @id = id @media_id = media_id @object = object @kind = kind @type = type @codec = codec if codec != OMIT @container = container if container != OMIT @width = width if width != OMIT @height = height if height != OMIT @orientation = orientation if orientation != OMIT @rotation = rotation if rotation != OMIT @transparency = transparency if transparency != OMIT @animated = animated if animated != OMIT @frames = frames if frames != OMIT @duration = duration if duration != OMIT @fps = fps if fps != OMIT @filesize = filesize @bitrate = bitrate if bitrate != OMIT @language = language if language != OMIT @label = label if label != OMIT @ref = ref if ref != OMIT @folder = folder if folder != OMIT @filename = filename if filename != OMIT @url = url @placeholder = placeholder if placeholder != OMIT @background = background if background != OMIT @metadata = metadata if metadata != OMIT @original = original if original != OMIT @created_by = created_by if created_by != OMIT @created = created @updated = updated @status = status @additional_properties = additional_properties @_field_set = { "id": id, "media_id": media_id, "object": object, "kind": kind, "type": type, "codec": codec, "container": container, "width": width, "height": height, "orientation": orientation, "rotation": rotation, "transparency": transparency, "animated": animated, "frames": frames, "duration": duration, "fps": fps, "filesize": filesize, "bitrate": bitrate, "language": language, "label": label, "ref": ref, "folder": folder, "filename": filename, "url": url, "placeholder": placeholder, "background": background, "metadata": metadata, "original": original, "created_by": created_by, "created": created, "updated": updated, "status": status }.reject do |_k, v| v == OMIT end end