Class: FastpixClient::Models::Components::TopErrorDetails

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_client/models/components/toperrordetails.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(percentage: nil, unique_viewers_effected_percentage: nil, notes: nil, message: nil, last_seen: nil, count: nil, code: nil) ⇒ TopErrorDetails

Returns a new instance of TopErrorDetails.



31
32
33
34
35
36
37
38
39
# File 'lib/fastpix_client/models/components/toperrordetails.rb', line 31

def initialize(percentage: nil, unique_viewers_effected_percentage: nil, notes: nil, message: nil, last_seen: nil, count: nil, code: nil)
  @percentage = percentage
  @unique_viewers_effected_percentage = unique_viewers_effected_percentage
  @notes = notes
  @message = message
  @last_seen = last_seen
  @count = count
  @code = code
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/fastpix_client/models/components/toperrordetails.rb', line 42

def ==(other)
  return false unless other.is_a? self.class
  return false unless @percentage == other.percentage
  return false unless @unique_viewers_effected_percentage == other.unique_viewers_effected_percentage
  return false unless @notes == other.notes
  return false unless @message == other.message
  return false unless @last_seen == other.last_seen
  return false unless @count == other.count
  return false unless @code == other.code
  true
end