Exception: Expo::Push::PushTokenInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/push/client.rb

Overview

rubocop:disable Style/Documentation

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

explain

Constructor Details

#initialize(token:) ⇒ PushTokenInvalid

Returns a new instance of PushTokenInvalid.



112
113
114
115
116
# File 'lib/push/client.rb', line 112

def initialize(token:)
  self.token = token

  super "Expected a valid Expo Push Token, actual: #{token}"
end

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



110
111
112
# File 'lib/push/client.rb', line 110

def token
  @token
end