Class: Firebase::Admin::Messaging::ErrorInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/firebase/admin/messaging/error_info.rb

Overview

Information on an error encountered when performing a topic management operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index:, reason:) ⇒ ErrorInfo

Parameters:

  • index (Integer)

    The index of the registration token the error is related to.

  • reason (String)

    The description of the error encountered.



18
19
20
21
# File 'lib/firebase/admin/messaging/error_info.rb', line 18

def initialize(index:, reason:)
  self.index = index
  self.reason = reason
end

Instance Attribute Details

#indexInteger

Returns The index of the registration token the error is related to.

Returns:

  • (Integer)

    The index of the registration token the error is related to.



7
8
9
# File 'lib/firebase/admin/messaging/error_info.rb', line 7

def index
  @index
end

#reasonString

Returns The description of the error encountered.

Returns:

  • (String)

    The description of the error encountered.



10
11
12
# File 'lib/firebase/admin/messaging/error_info.rb', line 10

def reason
  @reason
end