Class: IonicNotification::SentNotification
- Inherits:
-
Object
- Object
- IonicNotification::SentNotification
- Defined in:
- lib/ionic_notification/sent_notification.rb
Instance Attribute Summary collapse
-
#android_payload ⇒ Object
Returns the value of attribute android_payload.
-
#ios_payload ⇒ Object
Returns the value of attribute ios_payload.
-
#message ⇒ Object
Returns the value of attribute message.
-
#message_id ⇒ Object
Returns the value of attribute message_id.
-
#production ⇒ Object
Returns the value of attribute production.
-
#result ⇒ Object
Returns the value of attribute result.
-
#sent_at ⇒ Object
Returns the value of attribute sent_at.
-
#title ⇒ Object
Returns the value of attribute title.
-
#tokens ⇒ Object
Returns the value of attribute tokens.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SentNotification
constructor
A new instance of SentNotification.
- #status ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SentNotification
Returns a new instance of SentNotification.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ionic_notification/sent_notification.rb', line 6 def initialize( = {}) @tokens = [:tokens] @title = [:title] = [:message] @android_payload = [:android_payload] @ios_payload = [:ios_payload] @production = [:production] @result = [:result] = [:message_id] @sent_at = Time.now @scheduled = init_scheduled([:scheduled]) end |
Instance Attribute Details
#android_payload ⇒ Object
Returns the value of attribute android_payload.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def android_payload @android_payload end |
#ios_payload ⇒ Object
Returns the value of attribute ios_payload.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def ios_payload @ios_payload end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def end |
#message_id ⇒ Object
Returns the value of attribute message_id.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def end |
#production ⇒ Object
Returns the value of attribute production.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def production @production end |
#result ⇒ Object
Returns the value of attribute result.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def result @result end |
#sent_at ⇒ Object
Returns the value of attribute sent_at.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def sent_at @sent_at end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def title @title end |
#tokens ⇒ Object
Returns the value of attribute tokens.
3 4 5 |
# File 'lib/ionic_notification/sent_notification.rb', line 3 def tokens @tokens end |
Instance Method Details
#status ⇒ Object
19 20 21 22 |
# File 'lib/ionic_notification/sent_notification.rb', line 19 def status service = StatusService.new service.check_status! end |