Class: PlexRubySDK::Models::Operations::GetSessionsMedia

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(audio_channels: nil, audio_codec: nil, bitrate: nil, container: nil, duration: nil, id: nil, part: nil, selected: nil) ⇒ GetSessionsMedia

Returns a new instance of GetSessionsMedia.



35
36
37
38
39
40
41
42
43
44
# File 'lib/plex_ruby_sdk/models/operations/getsessions_media.rb', line 35

def initialize(audio_channels: nil, audio_codec: nil, bitrate: nil, container: nil, duration: nil, id: nil, part: nil, selected: nil)
  @audio_channels = audio_channels
  @audio_codec = audio_codec
  @bitrate = bitrate
  @container = container
  @duration = duration
  @id = id
  @part = part
  @selected = selected
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/plex_ruby_sdk/models/operations/getsessions_media.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @audio_channels == other.audio_channels
  return false unless @audio_codec == other.audio_codec
  return false unless @bitrate == other.bitrate
  return false unless @container == other.container
  return false unless @duration == other.duration
  return false unless @id == other.id
  return false unless @part == other.part
  return false unless @selected == other.selected
  true
end