Class: PlexRubySDK::Models::Operations::PlexDevice
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::PlexDevice
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/plexdevice.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(access_token: nil, client_identifier: nil, connections: nil, created_at: nil, device: nil, dns_rebinding_protection: nil, home: nil, https_required: nil, last_seen_at: nil, name: nil, nat_loopback_supported: nil, owned: nil, owner_id: nil, platform: nil, platform_version: nil, presence: nil, product: nil, product_version: nil, provides: nil, public_address: nil, public_address_matches: nil, relay: nil, source_title: nil, synced: nil) ⇒ PlexDevice
constructor
A new instance of PlexDevice.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(access_token: nil, client_identifier: nil, connections: nil, created_at: nil, device: nil, dns_rebinding_protection: nil, home: nil, https_required: nil, last_seen_at: nil, name: nil, nat_loopback_supported: nil, owned: nil, owner_id: nil, platform: nil, platform_version: nil, presence: nil, product: nil, product_version: nil, provides: nil, public_address: nil, public_address_matches: nil, relay: nil, source_title: nil, synced: nil) ⇒ PlexDevice
Returns a new instance of PlexDevice.
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/plex_ruby_sdk/models/operations/plexdevice.rb', line 70 def initialize(access_token: nil, client_identifier: nil, connections: nil, created_at: nil, device: nil, dns_rebinding_protection: nil, home: nil, https_required: nil, last_seen_at: nil, name: nil, nat_loopback_supported: nil, owned: nil, owner_id: nil, platform: nil, platform_version: nil, presence: nil, product: nil, product_version: nil, provides: nil, public_address: nil, public_address_matches: nil, relay: nil, source_title: nil, synced: nil) @access_token = access_token @client_identifier = client_identifier @connections = connections @created_at = created_at @device = device @dns_rebinding_protection = dns_rebinding_protection @home = home @https_required = https_required @last_seen_at = last_seen_at @name = name @nat_loopback_supported = nat_loopback_supported @owned = owned @owner_id = owner_id @platform = platform @platform_version = platform_version @presence = presence @product = product @product_version = product_version @provides = provides @public_address = public_address @public_address_matches = public_address_matches @relay = relay @source_title = source_title @synced = synced end |
Instance Method Details
#==(other) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/plex_ruby_sdk/models/operations/plexdevice.rb', line 97 def ==(other) return false unless other.is_a? self.class return false unless @access_token == other.access_token return false unless @client_identifier == other.client_identifier return false unless @connections == other.connections return false unless @created_at == other.created_at return false unless @device == other.device return false unless @dns_rebinding_protection == other.dns_rebinding_protection return false unless @home == other.home return false unless @https_required == other.https_required return false unless @last_seen_at == other.last_seen_at return false unless @name == other.name return false unless @nat_loopback_supported == other.nat_loopback_supported return false unless @owned == other.owned return false unless @owner_id == other.owner_id return false unless @platform == other.platform return false unless @platform_version == other.platform_version return false unless @presence == other.presence return false unless @product == other.product return false unless @product_version == other.product_version return false unless @provides == other.provides return false unless @public_address == other.public_address return false unless @public_address_matches == other.public_address_matches return false unless @relay == other.relay return false unless @source_title == other.source_title return false unless @synced == other.synced true end |