Class: PlexRubySDK::Models::Operations::Feature

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type: nil, action: nil, directory: nil, flavor: nil, key: nil, scrobble_key: nil, unscrobble_key: nil) ⇒ Feature

Returns a new instance of Feature.



33
34
35
36
37
38
39
40
41
# File 'lib/plex_ruby_sdk/models/operations/feature.rb', line 33

def initialize(type: nil, action: nil, directory: nil, flavor: nil, key: nil, scrobble_key: nil, unscrobble_key: nil)
  @type = type
  @action = action
  @directory = directory
  @flavor = flavor
  @key = key
  @scrobble_key = scrobble_key
  @unscrobble_key = unscrobble_key
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/plex_ruby_sdk/models/operations/feature.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @action == other.action
  return false unless @directory == other.directory
  return false unless @flavor == other.flavor
  return false unless @key == other.key
  return false unless @scrobble_key == other.scrobble_key
  return false unless @unscrobble_key == other.unscrobble_key
  true
end