Class: FastpixClient::Models::Components::Media

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_client/models/components/media.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(id: nil, workspace_id: nil, media_quality: nil, creator_id: nil, status: nil, mp4_support: nil, playback_ids: nil, tracks: nil, summary: nil, chapters: nil, named_entities: nil, moderation: nil, duration: nil, created_at: nil, updated_at: nil, thumbnail: nil, metadata: nil, title: nil, max_resolution: Models::Components::MediaMaxResolution::ONE_THOUSAND_AND_EIGHTYP, source_resolution: Models::Components::MediaSourceResolution::ONE_THOUSAND_AND_EIGHTYP, source_access: nil, generated_subtitles: nil, is_audio_only: nil, subtitle_available: nil, aspect_ratio: nil) ⇒ Media

Returns a new instance of Media.



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/fastpix_client/models/components/media.rb', line 73

def initialize(id: nil, workspace_id: nil, media_quality: nil, creator_id: nil, status: nil, mp4_support: nil, playback_ids: nil, tracks: nil, summary: nil, chapters: nil, named_entities: nil, moderation: nil, duration: nil, created_at: nil, updated_at: nil, thumbnail: nil, metadata: nil, title: nil, max_resolution: Models::Components::MediaMaxResolution::ONE_THOUSAND_AND_EIGHTYP, source_resolution: Models::Components::MediaSourceResolution::ONE_THOUSAND_AND_EIGHTYP, source_access: nil, generated_subtitles: nil, is_audio_only: nil, subtitle_available: nil, aspect_ratio: nil)
  @id = id
  @workspace_id = workspace_id
  @media_quality = media_quality
  @creator_id = creator_id
  @status = status
  @mp4_support = mp4_support
  @playback_ids = playback_ids
  @tracks = tracks
  @summary = summary
  @chapters = chapters
  @named_entities = named_entities
  @moderation = moderation
  @duration = duration
  @created_at = created_at
  @updated_at = updated_at
  @thumbnail = thumbnail
  @metadata = 
  @title = title
  @max_resolution = max_resolution
  @source_resolution = source_resolution
  @source_access = source_access
  @generated_subtitles = generated_subtitles
  @is_audio_only = is_audio_only
  @subtitle_available = subtitle_available
  @aspect_ratio = aspect_ratio
end

Instance Method Details

#==(other) ⇒ Object



102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/fastpix_client/models/components/media.rb', line 102

def ==(other)
  return false unless other.is_a? self.class

  [@id, @workspace_id, @media_quality, @creator_id, @status,
   @mp4_support, @playback_ids, @tracks, @summary, @chapters,
   @named_entities, @moderation, @duration, @created_at, @updated_at,
   @thumbnail, @metadata, @title, @max_resolution, @source_resolution,
   @source_access, @generated_subtitles, @is_audio_only, @subtitle_available, @aspect_ratio] ==
    [other.id, other.workspace_id, other.media_quality, other.creator_id, other.status,
     other.mp4_support, other.playback_ids, other.tracks, other.summary, other.chapters,
     other.named_entities, other.moderation, other.duration, other.created_at, other.updated_at,
     other.thumbnail, other., other.title, other.max_resolution, other.source_resolution,
     other.source_access, other.generated_subtitles, other.is_audio_only, other.subtitle_available, other.aspect_ratio]
end