Class: PlexRubySDK::Models::Operations::Account
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Account
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/account.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(auto_select_audio: nil, default_audio_language: nil, default_subtitle_language: nil, id: nil, key: nil, name: nil, subtitle_mode: nil, thumb: nil) ⇒ Account
constructor
A new instance of Account.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(auto_select_audio: nil, default_audio_language: nil, default_subtitle_language: nil, id: nil, key: nil, name: nil, subtitle_mode: nil, thumb: nil) ⇒ Account
Returns a new instance of Account.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/plex_ruby_sdk/models/operations/account.rb', line 35 def initialize(auto_select_audio: nil, default_audio_language: nil, default_subtitle_language: nil, id: nil, key: nil, name: nil, subtitle_mode: nil, thumb: nil) @auto_select_audio = auto_select_audio @default_audio_language = default_audio_language @default_subtitle_language = default_subtitle_language @id = id @key = key @name = name @subtitle_mode = subtitle_mode @thumb = thumb end |
Instance Method Details
#==(other) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/plex_ruby_sdk/models/operations/account.rb', line 46 def ==(other) return false unless other.is_a? self.class return false unless @auto_select_audio == other.auto_select_audio return false unless @default_audio_language == other.default_audio_language return false unless @default_subtitle_language == other.default_subtitle_language return false unless @id == other.id return false unless @key == other.key return false unless @name == other.name return false unless @subtitle_mode == other.subtitle_mode return false unless @thumb == other.thumb true end |