Class: PlexRubySDK::Models::Operations::GetUsersServer

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(all_libraries: nil, id: nil, last_seen_at: nil, machine_identifier: nil, name: nil, num_libraries: nil, owned: nil, pending: nil, server_id: nil) ⇒ GetUsersServer

Returns a new instance of GetUsersServer.



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

def initialize(all_libraries: nil, id: nil, last_seen_at: nil, machine_identifier: nil, name: nil, num_libraries: nil, owned: nil, pending: nil, server_id: nil)
  @all_libraries = all_libraries
  @id = id
  @last_seen_at = last_seen_at
  @machine_identifier = machine_identifier
  @name = name
  @num_libraries = num_libraries
  @owned = owned
  @pending = pending
  @server_id = server_id
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @all_libraries == other.all_libraries
  return false unless @id == other.id
  return false unless @last_seen_at == other.last_seen_at
  return false unless @machine_identifier == other.machine_identifier
  return false unless @name == other.name
  return false unless @num_libraries == other.num_libraries
  return false unless @owned == other.owned
  return false unless @pending == other.pending
  return false unless @server_id == other.server_id
  true
end