Class: PlexRubySDK::Models::Operations::GetSessionsPart
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::GetSessionsPart
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/getsessions_part.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(container: nil, decision: nil, duration: nil, file: nil, has_thumbnail: nil, id: nil, key: nil, selected: nil, size: nil, stream: nil) ⇒ GetSessionsPart
constructor
A new instance of GetSessionsPart.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(container: nil, decision: nil, duration: nil, file: nil, has_thumbnail: nil, id: nil, key: nil, selected: nil, size: nil, stream: nil) ⇒ GetSessionsPart
Returns a new instance of GetSessionsPart.
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/plex_ruby_sdk/models/operations/getsessions_part.rb', line 39 def initialize(container: nil, decision: nil, duration: nil, file: nil, has_thumbnail: nil, id: nil, key: nil, selected: nil, size: nil, stream: nil) @container = container @decision = decision @duration = duration @file = file @has_thumbnail = has_thumbnail @id = id @key = key @selected = selected @size = size @stream = stream end |
Instance Method Details
#==(other) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/plex_ruby_sdk/models/operations/getsessions_part.rb', line 52 def ==(other) return false unless other.is_a? self.class return false unless @container == other.container return false unless @decision == other.decision return false unless @duration == other.duration return false unless @file == other.file return false unless @has_thumbnail == other.has_thumbnail return false unless @id == other.id return false unless @key == other.key return false unless @selected == other.selected return false unless @size == other.size return false unless @stream == other.stream true end |