Class: PlexRubySDK::Models::Operations::GetLibrarySectionsAllPart

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(file: nil, id: nil, key: nil, size: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, packet_length: nil, stream: nil, video_profile: nil) ⇒ GetLibrarySectionsAllPart

Returns a new instance of GetLibrarySectionsAllPart.



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

def initialize(file: nil, id: nil, key: nil, size: nil, accessible: nil, audio_profile: nil, container: nil, duration: nil, exists: nil, has64bit_offsets: nil, has_thumbnail: nil, indexes: nil, optimized_for_streaming: nil, packet_length: nil, stream: nil, video_profile: nil)
  @file = file
  @id = id
  @key = key
  @size = size
  @accessible = accessible
  @audio_profile = audio_profile
  @container = container
  @duration = duration
  @exists = exists
  @has64bit_offsets = has64bit_offsets
  @has_thumbnail = has_thumbnail
  @indexes = indexes
  @optimized_for_streaming = optimized_for_streaming
  @packet_length = packet_length
  @stream = stream
  @video_profile = video_profile
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/plex_ruby_sdk/models/operations/get_library_sections_all_part.rb', line 70

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