Class: Firebase::Admin::Messaging::ErrorInfo
- Inherits:
-
Object
- Object
- Firebase::Admin::Messaging::ErrorInfo
- 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
-
#index ⇒ Integer
The index of the registration token the error is related to.
-
#reason ⇒ String
The description of the error encountered.
Instance Method Summary collapse
-
#initialize(index:, reason:) ⇒ ErrorInfo
constructor
Initializes an ErrorInfo.
Constructor Details
#initialize(index:, reason:) ⇒ ErrorInfo
Initializes an Firebase::Admin::Messaging::ErrorInfo.
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
#index ⇒ Integer
Returns 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 |
#reason ⇒ String
Returns The description of the error encountered.
10 11 12 |
# File 'lib/firebase/admin/messaging/error_info.rb', line 10 def reason @reason end |