Class: PlexRubySDK::Models::Operations::GetRecentlyAddedSort

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(default_direction: nil, key: nil, title: nil, active: nil, active_direction: nil, default: nil, desc_key: nil, first_character_key: nil) ⇒ GetRecentlyAddedSort

Returns a new instance of GetRecentlyAddedSort.



37
38
39
40
41
42
43
44
45
46
# File 'lib/plex_ruby_sdk/models/operations/get_recently_added_sort.rb', line 37

def initialize(default_direction: nil, key: nil, title: nil, active: nil, active_direction: nil, default: nil, desc_key: nil, first_character_key: nil)
  @default_direction = default_direction
  @key = key
  @title = title
  @active = active
  @active_direction = active_direction
  @default = default
  @desc_key = desc_key
  @first_character_key = first_character_key
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/plex_ruby_sdk/models/operations/get_recently_added_sort.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @default_direction == other.default_direction
  return false unless @key == other.key
  return false unless @title == other.title
  return false unless @active == other.active
  return false unless @active_direction == other.active_direction
  return false unless @default == other.default
  return false unless @desc_key == other.desc_key
  return false unless @first_character_key == other.first_character_key
  true
end