Class: PlexRubySDK::Models::Operations::AddPlaylistContentsMediaContainer
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::AddPlaylistContentsMediaContainer
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(leaf_count_added: nil, leaf_count_requested: nil, metadata: nil, size: nil) ⇒ AddPlaylistContentsMediaContainer
constructor
A new instance of AddPlaylistContentsMediaContainer.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(leaf_count_added: nil, leaf_count_requested: nil, metadata: nil, size: nil) ⇒ AddPlaylistContentsMediaContainer
Returns a new instance of AddPlaylistContentsMediaContainer.
27 28 29 30 31 32 |
# File 'lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb', line 27 def initialize(leaf_count_added: nil, leaf_count_requested: nil, metadata: nil, size: nil) @leaf_count_added = leaf_count_added @leaf_count_requested = leaf_count_requested @metadata = @size = size end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/plex_ruby_sdk/models/operations/addplaylistcontents_mediacontainer.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @leaf_count_added == other.leaf_count_added return false unless @leaf_count_requested == other.leaf_count_requested return false unless @metadata == other. return false unless @size == other.size true end |