Class: ApexPing::V3

Inherits:
Integration
  • Object
show all
Defined in:
app/models/pager_tree/integrations/apex_ping/v3.rb

Constant Summary collapse

OPTIONS =
[]

Instance Method Summary collapse

Instance Method Details

#adapter_actionObject



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_createObject



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

Returns:

  • (Boolean)


8
9
10
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 8

def adapter_supports_incoming?
  true
end

#adapter_thirdparty_idObject



12
13
14
# File 'app/models/pager_tree/integrations/apex_ping/v3.rb', line 12

def adapter_thirdparty_id
  _thirdparty_id
end