Method: Webhookdb::Heroku.client
- Defined in:
- lib/webhookdb/heroku.rb
.client ⇒ Object
16 17 18 19 20 |
# File 'lib/webhookdb/heroku.rb', line 16 def self.client raise "WEBHOOKDB_HEROKU_OAUTH_TOKEN not set" if self.oauth_token.blank? @client ||= PlatformAPI.connect_oauth(self.oauth_token) return @client end |