Class: IonicNotification::StatusService
- Inherits:
-
Object
- Object
- IonicNotification::StatusService
- Includes:
- HTTParty
- Defined in:
- lib/ionic_notification/status_service.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
Instance Method Summary collapse
- #check_status! ⇒ Object
-
#initialize(message_id) ⇒ StatusService
constructor
A new instance of StatusService.
- #payload ⇒ Object
Constructor Details
#initialize(message_id) ⇒ StatusService
Returns a new instance of StatusService.
8 9 10 |
# File 'lib/ionic_notification/status_service.rb', line 8 def initialize() = end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
6 7 8 |
# File 'lib/ionic_notification/status_service.rb', line 6 def body @body end |
Instance Method Details
#check_status! ⇒ Object
12 13 14 |
# File 'lib/ionic_notification/status_service.rb', line 12 def check_status! self.class.get("/api/v1/status/#{@message_id}", payload) end |
#payload ⇒ Object
16 17 18 19 20 21 |
# File 'lib/ionic_notification/status_service.rb', line 16 def payload = {} . merge!(basic_auth: auth). merge!(headers: headers) end |