Class: PlexRubySDK::Models::Operations::GetPlaylistContentsPart

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(audio_profile: nil, container: nil, duration: nil, file: nil, has64bit_offsets: nil, id: nil, key: nil, optimized_for_streaming: nil, size: nil, video_profile: nil) ⇒ GetPlaylistContentsPart

Returns a new instance of GetPlaylistContentsPart.



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb', line 39

def initialize(audio_profile: nil, container: nil, duration: nil, file: nil, has64bit_offsets: nil, id: nil, key: nil, optimized_for_streaming: nil, size: nil, video_profile: nil)
  @audio_profile = audio_profile
  @container = container
  @duration = duration
  @file = file
  @has64bit_offsets = has64bit_offsets
  @id = id
  @key = key
  @optimized_for_streaming = optimized_for_streaming
  @size = size
  @video_profile = video_profile
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/plex_ruby_sdk/models/operations/getplaylistcontents_part.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @audio_profile == other.audio_profile
  return false unless @container == other.container
  return false unless @duration == other.duration
  return false unless @file == other.file
  return false unless @has64bit_offsets == other.has64bit_offsets
  return false unless @id == other.id
  return false unless @key == other.key
  return false unless @optimized_for_streaming == other.optimized_for_streaming
  return false unless @size == other.size
  return false unless @video_profile == other.video_profile
  true
end