Sha256: 559d0ef1eeb3d255633f1653a1756e9710e554fe74021fb6916a1abdb75eb9ef
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
Contents
require 'creatable' require 'excon' require 'oj' require 'pushover/response' module Pushover # Api module module Api module_function def endpoints %i[messages sounds limits receipts validate] end def sounds %i[ pushover bike bugle cashregister classical cosmic falling gamelan incoming intermission magic mechanical pianobar siren spacealarm tugboat alien climb persistent echo updown none] end def connection Excon.new url end def initialize Excon.defaults[:headers]['Content-Type'] = 'application/json' Excon.defaults[:headers]['User-Agent'] = "pushover (ruby gem) v#{Pushover::VERSION}" end def url "https://api.pushover.net" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pushover-2.0.0 | lib/pushover/api.rb |