class Ittybit::Media::MediaGetResponse
def initialize(id:, object:, files:, urls:, created:, updated:, kind: OMIT, title: OMIT, alt: OMIT, width: OMIT,
-
(Ittybit::Media::MediaGetResponse)
-
Parameters:
-
additional_properties
(OpenStruct
) -- Additional properties unmapped to the current class definition -
updated
(DateTime
) -- -
created
(DateTime
) -- -
metadata
(Hash{String => Object}
) -- -
background
(String
) -- -
urls
(Hash{String => Object}
) -- -
files
(Array
) -- -
duration
(Float
) -- -
height
(Integer
) -- -
width
(Integer
) -- -
alt
(String
) -- -
title
(String
) -- -
kind
(Ittybit::Media::MediaGetResponseKind
) -- -
object
(String
) -- -
id
(String
) --
def initialize(id:, object:, files:, urls:, created:, updated:, kind: OMIT, title: OMIT, alt: OMIT, width: OMIT, height: OMIT, duration: OMIT, background: OMIT, metadata: OMIT, additional_properties: nil) @id = id @object = object @kind = kind if kind != OMIT @title = title if title != OMIT @alt = alt if alt != OMIT @width = width if width != OMIT @height = height if height != OMIT @duration = duration if duration != OMIT @files = files @urls = urls @background = background if background != OMIT @metadata = metadata if metadata != OMIT @created = created @updated = updated @additional_properties = additional_properties @_field_set = { "id": id, "object": object, "kind": kind, "title": title, "alt": alt, "width": width, "height": height, "duration": duration, "files": files, "urls": urls, "background": background, "metadata": metadata, "created": created, "updated": updated }.reject do |_k, v| v == OMIT end end