Class: Firepush::Recipient::Token
- Defined in:
- lib/firepush/recipient/token.rb
Instance Attribute Summary collapse
- #token ⇒ String readonly
Instance Method Summary collapse
-
#initialize(token) ⇒ Token
constructor
A new instance of Token.
- #valid? ⇒ Boolean
- #value ⇒ String
Methods inherited from Base
Constructor Details
#initialize(token) ⇒ Token
Returns a new instance of Token.
9 10 11 |
# File 'lib/firepush/recipient/token.rb', line 9 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ String (readonly)
6 7 8 |
# File 'lib/firepush/recipient/token.rb', line 6 def token @token end |
Instance Method Details
#valid? ⇒ Boolean
15 16 17 |
# File 'lib/firepush/recipient/token.rb', line 15 def valid? valid_str?(token) end |
#value ⇒ String
21 22 23 |
# File 'lib/firepush/recipient/token.rb', line 21 def value token end |