Class: PlexRubySDK::Models::Operations::Media
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Media
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/media.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil) ⇒ Media
constructor
A new instance of Media.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil) ⇒ Media
Returns a new instance of Media.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/plex_ruby_sdk/models/operations/media.rb', line 58 def initialize(id: nil, aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, display_offset: nil, duration: nil, has64bit_offsets: nil, has_voice_activity: nil, height: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil) @id = id @aspect_ratio = aspect_ratio @audio_channels = audio_channels @audio_codec = audio_codec @audio_profile = audio_profile @bitrate = bitrate @container = container @display_offset = display_offset @duration = duration @has64bit_offsets = has64bit_offsets @has_voice_activity = has_voice_activity @height = height @optimized_for_streaming = optimized_for_streaming @part = part @video_codec = video_codec @video_frame_rate = video_frame_rate @video_profile = video_profile @video_resolution = video_resolution @width = width end |
Instance Method Details
#==(other) ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/plex_ruby_sdk/models/operations/media.rb', line 80 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @aspect_ratio == other.aspect_ratio return false unless @audio_channels == other.audio_channels return false unless @audio_codec == other.audio_codec return false unless @audio_profile == other.audio_profile return false unless @bitrate == other.bitrate return false unless @container == other.container return false unless @display_offset == other.display_offset return false unless @duration == other.duration return false unless @has64bit_offsets == other.has64bit_offsets return false unless @has_voice_activity == other.has_voice_activity return false unless @height == other.height return false unless @optimized_for_streaming == other.optimized_for_streaming return false unless @part == other.part return false unless @video_codec == other.video_codec return false unless @video_frame_rate == other.video_frame_rate return false unless @video_profile == other.video_profile return false unless @video_resolution == other.video_resolution return false unless @width == other.width true end |