Class: Koa::Kik::PushResponse
- Inherits:
-
Object
- Object
- Koa::Kik::PushResponse
- Defined in:
- lib/koa/kik.rb
Instance Method Summary collapse
- #bad_token? ⇒ Boolean
-
#initialize(response) ⇒ PushResponse
constructor
A new instance of PushResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ PushResponse
Returns a new instance of PushResponse.
73 74 75 |
# File 'lib/koa/kik.rb', line 73 def initialize(response) @response = response end |
Instance Method Details
#bad_token? ⇒ Boolean
81 82 83 |
# File 'lib/koa/kik.rb', line 81 def bad_token? @response and @response.code.to_i == 403 end |
#success? ⇒ Boolean
77 78 79 |
# File 'lib/koa/kik.rb', line 77 def success? @response and @response.code.to_i == 200 end |