Class: PlexRubySDK::Models::Operations::Pivot

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(context: nil, id: nil, key: nil, symbol: nil, title: nil, type: nil) ⇒ Pivot

Returns a new instance of Pivot.



31
32
33
34
35
36
37
38
# File 'lib/plex_ruby_sdk/models/operations/pivot.rb', line 31

def initialize(context: nil, id: nil, key: nil, symbol: nil, title: nil, type: nil)
  @context = context
  @id = id
  @key = key
  @symbol = symbol
  @title = title
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/plex_ruby_sdk/models/operations/pivot.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @context == other.context
  return false unless @id == other.id
  return false unless @key == other.key
  return false unless @symbol == other.symbol
  return false unless @title == other.title
  return false unless @type == other.type
  true
end