Class: PlexRubySDK::Models::Operations::GetMetadataChildrenDirectory

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(key: nil, leaf_count: nil, thumb: nil, title: nil, viewed_leaf_count: nil) ⇒ GetMetadataChildrenDirectory

Returns a new instance of GetMetadataChildrenDirectory.



29
30
31
32
33
34
35
# File 'lib/plex_ruby_sdk/models/operations/getmetadatachildren_directory.rb', line 29

def initialize(key: nil, leaf_count: nil, thumb: nil, title: nil, viewed_leaf_count: nil)
  @key = key
  @leaf_count = leaf_count
  @thumb = thumb
  @title = title
  @viewed_leaf_count = viewed_leaf_count
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @key == other.key
  return false unless @leaf_count == other.leaf_count
  return false unless @thumb == other.thumb
  return false unless @title == other.title
  return false unless @viewed_leaf_count == other.viewed_leaf_count
  true
end