Class: PlexRubySDK::Models::Operations::GetPlaylistsMetadata

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(added_at: nil, composite: nil, duration: nil, guid: nil, icon: nil, key: nil, last_viewed_at: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil, view_count: nil) ⇒ GetPlaylistsMetadata

Returns a new instance of GetPlaylistsMetadata.



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

def initialize(added_at: nil, composite: nil, duration: nil, guid: nil, icon: nil, key: nil, last_viewed_at: nil, leaf_count: nil, playlist_type: nil, rating_key: nil, smart: nil, summary: nil, title: nil, type: nil, updated_at: nil, view_count: nil)
  @added_at = added_at
  @composite = composite
  @duration = duration
  @guid = guid
  @icon = icon
  @key = key
  @last_viewed_at = last_viewed_at
  @leaf_count = leaf_count
  @playlist_type = playlist_type
  @rating_key = rating_key
  @smart = smart
  @summary = summary
  @title = title
  @type = type
  @updated_at = updated_at
  @view_count = view_count
end

Instance Method Details

#==(other) ⇒ Object



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/plex_ruby_sdk/models/operations/getplaylists_metadata.rb', line 70

def ==(other)
  return false unless other.is_a? self.class
  return false unless @added_at == other.added_at
  return false unless @composite == other.composite
  return false unless @duration == other.duration
  return false unless @guid == other.guid
  return false unless @icon == other.icon
  return false unless @key == other.key
  return false unless @last_viewed_at == other.last_viewed_at
  return false unless @leaf_count == other.leaf_count
  return false unless @playlist_type == other.playlist_type
  return false unless @rating_key == other.rating_key
  return false unless @smart == other.smart
  return false unless @summary == other.summary
  return false unless @title == other.title
  return false unless @type == other.type
  return false unless @updated_at == other.updated_at
  return false unless @view_count == other.view_count
  true
end