Class: PlexRubySDK::Models::Operations::Session
- Inherits:
-
Object
- Object
- PlexRubySDK::Models::Operations::Session
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/plex_ruby_sdk/models/operations/session.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(bandwidth: nil, id: nil, location: nil) ⇒ Session
constructor
A new instance of Session.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(bandwidth: nil, id: nil, location: nil) ⇒ Session
Returns a new instance of Session.
25 26 27 28 29 |
# File 'lib/plex_ruby_sdk/models/operations/session.rb', line 25 def initialize(bandwidth: nil, id: nil, location: nil) @bandwidth = bandwidth @id = id @location = location end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/plex_ruby_sdk/models/operations/session.rb', line 31 def ==(other) return false unless other.is_a? self.class return false unless @bandwidth == other.bandwidth return false unless @id == other.id return false unless @location == other.location true end |