Class: ApexPing::V3
- Inherits:
-
Integration
- Object
- Integration
- ApexPing::V3
- Defined in:
- app/models/pager_tree/integrations/apex_ping/v3.rb
Constant Summary collapse
- OPTIONS =
[]
Instance Method Summary collapse
- #adapter_action ⇒ Object
- #adapter_process_create ⇒ Object
- #adapter_supports_incoming? ⇒ Boolean
- #adapter_thirdparty_id ⇒ Object
Instance Method Details
#adapter_action ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 16 def adapter_action if _is_create? :create elsif _is_resolve? :resolve else :other end end |
#adapter_process_create ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 26 def adapter_process_create Alert.new( title: _title, thirdparty_id: _thirdparty_id, dedup_keys: [], additional_data: _additional_datums ) end |
#adapter_supports_incoming? ⇒ Boolean
8 9 10 |
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 8 def adapter_supports_incoming? true end |
#adapter_thirdparty_id ⇒ Object
12 13 14 |
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 12 def adapter_thirdparty_id _thirdparty_id end |