Class: PlexRubySDK::Models::Operations::StatisticsBandwidth

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/plex_ruby_sdk/models/operations/statisticsbandwidth.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, bytes: nil, device_id: nil, lan: nil, timespan: nil) ⇒ StatisticsBandwidth

Returns a new instance of StatisticsBandwidth.



31
32
33
34
35
36
37
38
# File 'lib/plex_ruby_sdk/models/operations/statisticsbandwidth.rb', line 31

def initialize(account_id: nil, at: nil, bytes: nil, device_id: nil, lan: nil, timespan: nil)
  @account_id = 
  @at = at
  @bytes = bytes
  @device_id = device_id
  @lan = lan
  @timespan = timespan
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/plex_ruby_sdk/models/operations/statisticsbandwidth.rb', line 40

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 @bytes == other.bytes
  return false unless @device_id == other.device_id
  return false unless @lan == other.lan
  return false unless @timespan == other.timespan
  true
end