Class: PlexRubySDK::Models::Operations::Setting

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(advanced: nil, default: nil, enum_values: nil, group: nil, hidden: nil, id: nil, label: nil, summary: nil, type: nil, value: nil) ⇒ Setting

Returns a new instance of Setting.



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

def initialize(advanced: nil, default: nil, enum_values: nil, group: nil, hidden: nil, id: nil, label: nil, summary: nil, type: nil, value: nil)
  @advanced = advanced
  @default = default
  @enum_values = enum_values
  @group = group
  @hidden = hidden
  @id = id
  @label = label
  @summary = summary
  @type = type
  @value = value
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/plex_ruby_sdk/models/operations/setting.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @advanced == other.advanced
  return false unless @default == other.default
  return false unless @enum_values == other.enum_values
  return false unless @group == other.group
  return false unless @hidden == other.hidden
  return false unless @id == other.id
  return false unless @label == other.label
  return false unless @summary == other.summary
  return false unless @type == other.type
  return false unless @value == other.value
  true
end