class ActionPush::Provider::Base
Attributes
delivered[RW]
- Boolean
-
true
if push was successfully sent to the delivery gate
delivery_method[RW]
- Proc
-
object which is responds to call
delivery_response[RW]
- any
-
response from the delivery gate
payload[RW]
extra data (JSON) to sent with a PUSH message as a payload
scheduled[RW]
- Boolean
-
If the PUSH message scheduled to deliver
token[RW]
- String
-
Device token
Public Class Methods
new(params = {}) { |self| ... }
click to toggle source
# File lib/action_push/provider/base.rb, line 30 def initialize(params = {}) assign(params) yield(self) if block_given? end
Public Instance Methods
assign(params = {})
click to toggle source
@return [Self]
# File lib/action_push/provider/base.rb, line 37 def assign(params = {}) params.each { |key, value| public_send("#{key}=", value) } self end
body()
click to toggle source
# File lib/action_push/provider/base.rb, line 55 def body raise NotImplementedError, __method__ end
body=(_value)
click to toggle source
# File lib/action_push/provider/base.rb, line 47 def body=(_value) raise NotImplementedError, __method__ end
deliver()
click to toggle source
# File lib/action_push/provider/base.rb, line 59 def deliver delivery_method.call(self) if scheduled end
title()
click to toggle source
# File lib/action_push/provider/base.rb, line 51 def title raise NotImplementedError, __method__ end
title=(_value)
click to toggle source
# File lib/action_push/provider/base.rb, line 43 def title=(_value) raise NotImplementedError, __method__ end