Class: PlexRubySDK::Models::Operations::GetSearchResultsPart

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/plex_ruby_sdk/models/operations/getsearchresults_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, id: nil, key: nil, size: nil, video_profile: nil) ⇒ GetSearchResultsPart

Returns a new instance of GetSearchResultsPart.



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

def initialize(audio_profile: nil, container: nil, duration: nil, file: nil, id: nil, key: nil, size: nil, video_profile: nil)
  @audio_profile = audio_profile
  @container = container
  @duration = duration
  @file = file
  @id = id
  @key = key
  @size = size
  @video_profile = video_profile
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/getsearchresults_part.rb', line 46

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 @id == other.id
  return false unless @key == other.key
  return false unless @size == other.size
  return false unless @video_profile == other.video_profile
  true
end