Class: PlexRubySDK::Models::Operations::GetLibraryHubsMedia

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, duration: nil, has64bit_offsets: nil, height: nil, id: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil) ⇒ GetLibraryHubsMedia

Returns a new instance of GetLibraryHubsMedia.



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

def initialize(aspect_ratio: nil, audio_channels: nil, audio_codec: nil, audio_profile: nil, bitrate: nil, container: nil, duration: nil, has64bit_offsets: nil, height: nil, id: nil, optimized_for_streaming: nil, part: nil, video_codec: nil, video_frame_rate: nil, video_profile: nil, video_resolution: nil, width: nil)
  @aspect_ratio = aspect_ratio
  @audio_channels = audio_channels
  @audio_codec = audio_codec
  @audio_profile = audio_profile
  @bitrate = bitrate
  @container = container
  @duration = duration
  @has64bit_offsets = has64bit_offsets
  @height = height
  @id = id
  @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



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/plex_ruby_sdk/models/operations/getlibraryhubs_media.rb', line 73

def ==(other)
  return false unless other.is_a? self.class
  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 @duration == other.duration
  return false unless @has64bit_offsets == other.has64bit_offsets
  return false unless @height == other.height
  return false unless @id == other.id
  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