Class: PlexRubySDK::Models::Operations::Activity

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(cancellable: nil, context: nil, progress: nil, subtitle: nil, title: nil, type: nil, user_id: nil, uuid: nil) ⇒ Activity

Returns a new instance of Activity.



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

def initialize(cancellable: nil, context: nil, progress: nil, subtitle: nil, title: nil, type: nil, user_id: nil, uuid: nil)
  @cancellable = cancellable
  @context = context
  @progress = progress
  @subtitle = subtitle
  @title = title
  @type = type
  @user_id = user_id
  @uuid = uuid
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/plex_ruby_sdk/models/operations/activity.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @cancellable == other.cancellable
  return false unless @context == other.context
  return false unless @progress == other.progress
  return false unless @subtitle == other.subtitle
  return false unless @title == other.title
  return false unless @type == other.type
  return false unless @user_id == other.user_id
  return false unless @uuid == other.uuid
  true
end