Class: PlexRubySDK::Models::Operations::MediaProvider

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(feature: nil, identifier: nil, protocols: nil, title: nil, types: nil) ⇒ MediaProvider

Returns a new instance of MediaProvider.



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

def initialize(feature: nil, identifier: nil, protocols: nil, title: nil, types: nil)
  @feature = feature
  @identifier = identifier
  @protocols = protocols
  @title = title
  @types = types
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @feature == other.feature
  return false unless @identifier == other.identifier
  return false unless @protocols == other.protocols
  return false unless @title == other.title
  return false unless @types == other.types
  true
end