class HerokuSni

Public Class Methods

new(token, app_id) click to toggle source
# File lib/heroku_dnsimple_cert/heroku_sni.rb, line 7
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

Public Instance Methods

create(options) click to toggle source
# File lib/heroku_dnsimple_cert/heroku_sni.rb, line 16
def create(options)
  self.class.post "", body: options
end
list() click to toggle source
# File lib/heroku_dnsimple_cert/heroku_sni.rb, line 12
def list
  self.class.get ""
end
update(name, options) click to toggle source
# File lib/heroku_dnsimple_cert/heroku_sni.rb, line 20
def update(name, options)
  self.class.patch "/#{name}", body: options
end