Class: PlexRubySDK::Models::Operations::User
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::User
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/user.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(allow_camera_upload: nil, allow_channels: nil, allow_subtitle_admin: nil, allow_sync: nil, allow_tuners: nil, email: nil, home: nil, id: nil, protected: nil, restricted: nil, server: nil, thumb: nil, title: nil, username: nil, filter_all: nil, filter_movies: nil, filter_music: nil, filter_photos: nil, filter_television: nil, recommendations_playlist_id: nil) ⇒ User
constructor
A new instance of User.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(allow_camera_upload: nil, allow_channels: nil, allow_subtitle_admin: nil, allow_sync: nil, allow_tuners: nil, email: nil, home: nil, id: nil, protected: nil, restricted: nil, server: nil, thumb: nil, title: nil, username: nil, filter_all: nil, filter_movies: nil, filter_music: nil, filter_photos: nil, filter_television: nil, recommendations_playlist_id: nil) ⇒ User
Returns a new instance of User.
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/plex_ruby_sdk/models/operations/user.rb', line 62 def initialize(allow_camera_upload: nil, allow_channels: nil, allow_subtitle_admin: nil, allow_sync: nil, allow_tuners: nil, email: nil, home: nil, id: nil, protected: nil, restricted: nil, server: nil, thumb: nil, title: nil, username: nil, filter_all: nil, filter_movies: nil, filter_music: nil, filter_photos: nil, filter_television: nil, recommendations_playlist_id: nil) @allow_camera_upload = allow_camera_upload @allow_channels = allow_channels @allow_subtitle_admin = allow_subtitle_admin @allow_sync = allow_sync @allow_tuners = allow_tuners @email = email @home = home @id = id @protected = protected @restricted = restricted @server = server @thumb = thumb @title = title @username = username @filter_all = filter_all @filter_movies = filter_movies @filter_music = filter_music @filter_photos = filter_photos @filter_television = filter_television @recommendations_playlist_id = recommendations_playlist_id end |
Instance Method Details
#==(other) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/plex_ruby_sdk/models/operations/user.rb', line 85 def ==(other) return false unless other.is_a? self.class return false unless @allow_camera_upload == other.allow_camera_upload return false unless @allow_channels == other.allow_channels return false unless @allow_subtitle_admin == other.allow_subtitle_admin return false unless @allow_sync == other.allow_sync return false unless @allow_tuners == other.allow_tuners return false unless @email == other.email return false unless @home == other.home return false unless @id == other.id return false unless @protected == other.protected return false unless @restricted == other.restricted return false unless @server == other.server return false unless @thumb == other.thumb return false unless @title == other.title return false unless @username == other.username return false unless @filter_all == other.filter_all return false unless @filter_movies == other.filter_movies return false unless @filter_music == other.filter_music return false unless @filter_photos == other.filter_photos return false unless @filter_television == other.filter_television return false unless @recommendations_playlist_id == other.recommendations_playlist_id true end |