Class: PlexRubySDK::Models::Operations::GetTokenByPinIdRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(client_id: nil, pin_id: nil, client_name: nil, client_version: nil, device_nickname: nil, platform: nil) ⇒ GetTokenByPinIdRequest

Returns a new instance of GetTokenByPinIdRequest.



34
35
36
37
38
39
40
41
# File 'lib/plex_ruby_sdk/models/operations/gettokenbypinid_request.rb', line 34

def initialize(client_id: nil, pin_id: nil, client_name: nil, client_version: nil, device_nickname: nil, platform: nil)
  @client_id = client_id
  @pin_id = pin_id
  @client_name = client_name
  @client_version = client_version
  @device_nickname = device_nickname
  @platform = platform
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @client_id == other.client_id
  return false unless @pin_id == other.pin_id
  return false unless @client_name == other.client_name
  return false unless @client_version == other.client_version
  return false unless @device_nickname == other.device_nickname
  return false unless @platform == other.platform
  true
end