Class: PlexRubySDK::Models::Operations::MyPlex

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(auth_token: nil, mapping_error: nil, mapping_state: nil, private_address: nil, private_port: nil, public_address: nil, public_port: nil, sign_in_state: nil, subscription_active: nil, subscription_features: nil, subscription_state: nil, username: nil) ⇒ MyPlex

Returns a new instance of MyPlex.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/plex_ruby_sdk/models/operations/myplex.rb', line 43

def initialize(auth_token: nil, mapping_error: nil, mapping_state: nil, private_address: nil, private_port: nil, public_address: nil, public_port: nil, sign_in_state: nil, subscription_active: nil, subscription_features: nil, subscription_state: nil, username: nil)
  @auth_token = auth_token
  @mapping_error = mapping_error
  @mapping_state = mapping_state
  @private_address = private_address
  @private_port = private_port
  @public_address = public_address
  @public_port = public_port
  @sign_in_state = 
  @subscription_active = subscription_active
  @subscription_features = subscription_features
  @subscription_state = subscription_state
  @username = username
end

Instance Method Details

#==(other) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/plex_ruby_sdk/models/operations/myplex.rb', line 58

def ==(other)
  return false unless other.is_a? self.class
  return false unless @auth_token == other.auth_token
  return false unless @mapping_error == other.mapping_error
  return false unless @mapping_state == other.mapping_state
  return false unless @private_address == other.private_address
  return false unless @private_port == other.private_port
  return false unless @public_address == other.public_address
  return false unless @public_port == other.public_port
  return false unless @sign_in_state == other.
  return false unless @subscription_active == other.subscription_active
  return false unless @subscription_features == other.subscription_features
  return false unless @subscription_state == other.subscription_state
  return false unless @username == other.username
  true
end