Class: PlexRubySDK::Models::Operations::Friend
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Friend
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/friend.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(email: nil, friendly_name: nil, home: nil, id: nil, restricted: nil, shared_servers: nil, shared_sources: nil, status: nil, thumb: nil, title: nil, username: nil, uuid: nil) ⇒ Friend
constructor
A new instance of Friend.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(email: nil, friendly_name: nil, home: nil, id: nil, restricted: nil, shared_servers: nil, shared_sources: nil, status: nil, thumb: nil, title: nil, username: nil, uuid: nil) ⇒ Friend
Returns a new instance of Friend.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/plex_ruby_sdk/models/operations/friend.rb', line 46 def initialize(email: nil, friendly_name: nil, home: nil, id: nil, restricted: nil, shared_servers: nil, shared_sources: nil, status: nil, thumb: nil, title: nil, username: nil, uuid: nil) @email = email @friendly_name = friendly_name @home = home @id = id @restricted = restricted @shared_servers = shared_servers @shared_sources = shared_sources @status = status @thumb = thumb @title = title @username = username @uuid = uuid end |
Instance Method Details
#==(other) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/plex_ruby_sdk/models/operations/friend.rb', line 61 def ==(other) return false unless other.is_a? self.class return false unless @email == other.email return false unless @friendly_name == other.friendly_name return false unless @home == other.home return false unless @id == other.id return false unless @restricted == other.restricted return false unless @shared_servers == other.shared_servers return false unless @shared_sources == other.shared_sources return false unless @status == other.status return false unless @thumb == other.thumb return false unless @title == other.title return false unless @username == other.username return false unless @uuid == other.uuid true end |