class Dingding::Notifier::PayloadMiddleware::Base

Attributes

notifier[R]
options[R]

Public Class Methods

default_opts() click to toggle source
# File lib/dingding-notifier/payload_middleware/base.rb, line 15
def default_opts
  @default_opts ||= {}
end
middleware_name(name) click to toggle source
# File lib/dingding-notifier/payload_middleware/base.rb, line 7
def middleware_name name
  PayloadMiddleware.register self, name.to_sym
end
new(notifier, opts={}) click to toggle source
# File lib/dingding-notifier/payload_middleware/base.rb, line 22
def initialize notifier, opts={}
  @notifier = notifier
  @options  = self.class.default_opts.merge opts
end
options(default_opts) click to toggle source
# File lib/dingding-notifier/payload_middleware/base.rb, line 11
def options default_opts
  @default_opts = default_opts
end

Public Instance Methods

call(_payload={}) click to toggle source
# File lib/dingding-notifier/payload_middleware/base.rb, line 27
def call _payload={}
  raise NoMethodError, "method `call` not defined for class #{self.class}"
end