Class: PlexRubySDK::Models::Operations::ButlerTask

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(description: nil, enabled: nil, interval: nil, name: nil, schedule_randomized: nil, title: nil) ⇒ ButlerTask

Returns a new instance of ButlerTask.



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

def initialize(description: nil, enabled: nil, interval: nil, name: nil, schedule_randomized: nil, title: nil)
  @description = description
  @enabled = enabled
  @interval = interval
  @name = name
  @schedule_randomized = schedule_randomized
  @title = title
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @description == other.description
  return false unless @enabled == other.enabled
  return false unless @interval == other.interval
  return false unless @name == other.name
  return false unless @schedule_randomized == other.schedule_randomized
  return false unless @title == other.title
  true
end