Class: PlexRubySDK::Models::Operations::GetSessionsStream

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(album_gain: nil, album_peak: nil, album_range: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, channels: nil, codec: nil, display_title: nil, extended_display_title: nil, gain: nil, id: nil, index: nil, location: nil, loudness: nil, lra: nil, peak: nil, sampling_rate: nil, selected: nil, stream_type: nil) ⇒ GetSessionsStream

Returns a new instance of GetSessionsStream.



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/plex_ruby_sdk/models/operations/getsessions_stream.rb', line 59

def initialize(album_gain: nil, album_peak: nil, album_range: nil, audio_channel_layout: nil, bit_depth: nil, bitrate: nil, channels: nil, codec: nil, display_title: nil, extended_display_title: nil, gain: nil, id: nil, index: nil, location: nil, loudness: nil, lra: nil, peak: nil, sampling_rate: nil, selected: nil, stream_type: nil)
  @album_gain = album_gain
  @album_peak = album_peak
  @album_range = album_range
  @audio_channel_layout = audio_channel_layout
  @bit_depth = bit_depth
  @bitrate = bitrate
  @channels = channels
  @codec = codec
  @display_title = display_title
  @extended_display_title = extended_display_title
  @gain = gain
  @id = id
  @index = index
  @location = location
  @loudness = loudness
  @lra = lra
  @peak = peak
  @sampling_rate = sampling_rate
  @selected = selected
  @stream_type = stream_type
end

Instance Method Details

#==(other) ⇒ Object



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/plex_ruby_sdk/models/operations/getsessions_stream.rb', line 82

def ==(other)
  return false unless other.is_a? self.class
  return false unless @album_gain == other.album_gain
  return false unless @album_peak == other.album_peak
  return false unless @album_range == other.album_range
  return false unless @audio_channel_layout == other.audio_channel_layout
  return false unless @bit_depth == other.bit_depth
  return false unless @bitrate == other.bitrate
  return false unless @channels == other.channels
  return false unless @codec == other.codec
  return false unless @display_title == other.display_title
  return false unless @extended_display_title == other.extended_display_title
  return false unless @gain == other.gain
  return false unless @id == other.id
  return false unless @index == other.index
  return false unless @location == other.location
  return false unless @loudness == other.loudness
  return false unless @lra == other.lra
  return false unless @peak == other.peak
  return false unless @sampling_rate == other.sampling_rate
  return false unless @selected == other.selected
  return false unless @stream_type == other.stream_type
  true
end