Class: FastpixApiSDK::Models::Components::Media
- Inherits:
-
Object
- Object
- FastpixApiSDK::Models::Components::Media
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/fastpix_api_sdk/models/components/media.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(thumbnail: nil, id: nil, workspace_id: nil, metadata: nil, status: nil, mp4_support: nil, source_access: nil, playback_ids: nil, tracks: nil, duration: nil, frame_rate: nil, aspect_ratio: nil, created_at: nil, updated_at: nil, max_resolution: Models::Components::MediaMaxResolution::ONE_THOUSAND_AND_EIGHTYP, source_resolution: Models::Components::SourceResolution::ONE_THOUSAND_AND_EIGHTYP) ⇒ Media
constructor
A new instance of Media.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(thumbnail: nil, id: nil, workspace_id: nil, metadata: nil, status: nil, mp4_support: nil, source_access: nil, playback_ids: nil, tracks: nil, duration: nil, frame_rate: nil, aspect_ratio: nil, created_at: nil, updated_at: nil, max_resolution: Models::Components::MediaMaxResolution::ONE_THOUSAND_AND_EIGHTYP, source_resolution: Models::Components::SourceResolution::ONE_THOUSAND_AND_EIGHTYP) ⇒ Media
Returns a new instance of Media.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/fastpix_api_sdk/models/components/media.rb', line 50 def initialize(thumbnail: nil, id: nil, workspace_id: nil, metadata: nil, status: nil, mp4_support: nil, source_access: nil, playback_ids: nil, tracks: nil, duration: nil, frame_rate: nil, aspect_ratio: nil, created_at: nil, updated_at: nil, max_resolution: Models::Components::MediaMaxResolution::ONE_THOUSAND_AND_EIGHTYP, source_resolution: Models::Components::SourceResolution::ONE_THOUSAND_AND_EIGHTYP) @thumbnail = thumbnail @id = id @workspace_id = workspace_id = @status = status @mp4_support = mp4_support @source_access = source_access @playback_ids = playback_ids @tracks = tracks @duration = duration @frame_rate = frame_rate @aspect_ratio = aspect_ratio @created_at = created_at @updated_at = updated_at @max_resolution = max_resolution @source_resolution = source_resolution end |
Instance Method Details
#==(other) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/fastpix_api_sdk/models/components/media.rb', line 70 def ==(other) return false unless other.is_a? self.class return false unless @thumbnail == other.thumbnail return false unless @id == other.id return false unless @workspace_id == other.workspace_id return false unless == other. return false unless @status == other.status return false unless @mp4_support == other.mp4_support return false unless @source_access == other.source_access return false unless @playback_ids == other.playback_ids return false unless @tracks == other.tracks return false unless @duration == other.duration return false unless @frame_rate == other.frame_rate return false unless @aspect_ratio == other.aspect_ratio return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @max_resolution == other.max_resolution return false unless @source_resolution == other.source_resolution true end |