module Discord::Backports

Public Instance Methods

compact() click to toggle source
# File lib/discord_notifier/backports/hash.rb, line 5
def compact
  select { |_, value| !value.nil? }
end
post(url, data, header = nil) click to toggle source
# File lib/discord_notifier/backports/http.rb, line 7
def post(url, data, header = nil)
  start(url.hostname, url.port,
        :use_ssl => url.scheme == 'https' ) {|http|
    http.post(url.path, data, header)
  }
end