Class: PlexRubySDK::Models::Operations::Server

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(address: nil, device_class: nil, host: nil, machine_identifier: nil, name: nil, port: nil, product: nil, protocol: nil, protocol_capabilities: nil, protocol_version: nil, version: nil) ⇒ Server

Returns a new instance of Server.



41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/plex_ruby_sdk/models/operations/server.rb', line 41

def initialize(address: nil, device_class: nil, host: nil, machine_identifier: nil, name: nil, port: nil, product: nil, protocol: nil, protocol_capabilities: nil, protocol_version: nil, version: nil)
  @address = address
  @device_class = device_class
  @host = host
  @machine_identifier = machine_identifier
  @name = name
  @port = port
  @product = product
  @protocol = protocol
  @protocol_capabilities = protocol_capabilities
  @protocol_version = protocol_version
  @version = version
end

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/plex_ruby_sdk/models/operations/server.rb', line 55

def ==(other)
  return false unless other.is_a? self.class
  return false unless @address == other.address
  return false unless @device_class == other.device_class
  return false unless @host == other.host
  return false unless @machine_identifier == other.machine_identifier
  return false unless @name == other.name
  return false unless @port == other.port
  return false unless @product == other.product
  return false unless @protocol == other.protocol
  return false unless @protocol_capabilities == other.protocol_capabilities
  return false unless @protocol_version == other.protocol_version
  return false unless @version == other.version
  true
end