Class: PlexRubySDK::Models::Operations::StatisticsMedia

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/plex_ruby_sdk/models/operations/statisticsmedia.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(account_id: nil, at: nil, count: nil, device_id: nil, duration: nil, metadata_type: nil, timespan: nil) ⇒ StatisticsMedia

Returns a new instance of StatisticsMedia.



33
34
35
36
37
38
39
40
41
# File 'lib/plex_ruby_sdk/models/operations/statisticsmedia.rb', line 33

def initialize(account_id: nil, at: nil, count: nil, device_id: nil, duration: nil, metadata_type: nil, timespan: nil)
  @account_id = 
  @at = at
  @count = count
  @device_id = device_id
  @duration = duration
  @metadata_type = 
  @timespan = timespan
end

Instance Method Details

#==(other) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/plex_ruby_sdk/models/operations/statisticsmedia.rb', line 43

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @at == other.at
  return false unless @count == other.count
  return false unless @device_id == other.device_id
  return false unless @duration == other.duration
  return false unless @metadata_type == other.
  return false unless @timespan == other.timespan
  true
end