Sha256: 35cd7df53e3c66a3887ef49ba093bf86281cb5dd8434780bd0906e423256ed7c
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
class HerokuSni include HTTParty headers "Accept" => "application/vnd.heroku+json; version=3" raise_on [422, 500] def initialize(token, app_id) self.class.base_uri "https://api.heroku.com/apps/#{app_id}/sni-endpoints" self.class.headers "Authorization" => "Bearer #{token}" end def list self.class.get "" end def create(options) self.class.post "", body: options end def update(name, options) self.class.patch "/#{name}", body: options end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heroku_dnsimple_cert-0.1.1 | lib/heroku_dnsimple_cert/heroku_sni.rb |
heroku_dnsimple_cert-0.1.0 | lib/heroku_dnsimple_cert/heroku_sni.rb |