class Object

Constants

PagerdutyIncident

This file contains patches to provide backwards compatibility with version 2 of the pagerduty gem. On the release of the next major version (4.0) it will be deleted, thus breaking backwards compatibility.

Public Class Methods

new(service_key, options = {}) click to toggle source
# File lib/pagerduty/legacy.rb, line 24
def self.new(service_key, options = {})
  build(
    integration_key: service_key,
    api_version:     1,
    http_proxy:      {
      host:     options[:proxy_host],
      port:     options[:proxy_port],
      username: options[:proxy_username],
      password: options[:proxy_password],
    },
  )
end

Public Instance Methods

service_key() click to toggle source
# File lib/pagerduty/legacy.rb, line 10
def service_key
  @integration_key
end