Class: PlexRubySDK::Models::Operations::GetPlaylistContentsMediaContainer

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(composite: nil, duration: nil, leaf_count: nil, metadata: nil, playlist_type: nil, rating_key: nil, size: nil, smart: nil, title: nil) ⇒ GetPlaylistContentsMediaContainer

Returns a new instance of GetPlaylistContentsMediaContainer.



37
38
39
40
41
42
43
44
45
46
47
# File 'lib/plex_ruby_sdk/models/operations/getplaylistcontents_mediacontainer.rb', line 37

def initialize(composite: nil, duration: nil, leaf_count: nil, metadata: nil, playlist_type: nil, rating_key: nil, size: nil, smart: nil, title: nil)
  @composite = composite
  @duration = duration
  @leaf_count = leaf_count
  @metadata = 
  @playlist_type = playlist_type
  @rating_key = rating_key
  @size = size
  @smart = smart
  @title = title
end

Instance Method Details

#==(other) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/plex_ruby_sdk/models/operations/getplaylistcontents_mediacontainer.rb', line 49

def ==(other)
  return false unless other.is_a? self.class
  return false unless @composite == other.composite
  return false unless @duration == other.duration
  return false unless @leaf_count == other.leaf_count
  return false unless @metadata == other.
  return false unless @playlist_type == other.playlist_type
  return false unless @rating_key == other.rating_key
  return false unless @size == other.size
  return false unless @smart == other.smart
  return false unless @title == other.title
  true
end