Class: PlexRubySDK::Models::Operations::Player

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(address: nil, local: nil, machine_identifier: nil, model: nil, platform: nil, platform_version: nil, product: nil, profile: nil, relayed: nil, remote_public_address: nil, secure: nil, state: nil, title: nil, user_id: nil, version: nil) ⇒ Player

Returns a new instance of Player.



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

def initialize(address: nil, local: nil, machine_identifier: nil, model: nil, platform: nil, platform_version: nil, product: nil, profile: nil, relayed: nil, remote_public_address: nil, secure: nil, state: nil, title: nil, user_id: nil, version: nil)
  @address = address
  @local = local
  @machine_identifier = machine_identifier
  @model = model
  @platform = platform
  @platform_version = platform_version
  @product = product
  @profile = profile
  @relayed = relayed
  @remote_public_address = remote_public_address
  @secure = secure
  @state = state
  @title = title
  @user_id = user_id
  @version = version
end

Instance Method Details

#==(other) ⇒ Object



67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/plex_ruby_sdk/models/operations/player.rb', line 67

def ==(other)
  return false unless other.is_a? self.class
  return false unless @address == other.address
  return false unless @local == other.local
  return false unless @machine_identifier == other.machine_identifier
  return false unless @model == other.model
  return false unless @platform == other.platform
  return false unless @platform_version == other.platform_version
  return false unless @product == other.product
  return false unless @profile == other.profile
  return false unless @relayed == other.relayed
  return false unless @remote_public_address == other.remote_public_address
  return false unless @secure == other.secure
  return false unless @state == other.state
  return false unless @title == other.title
  return false unless @user_id == other.user_id
  return false unless @version == other.version
  true
end