Class: Heroku::Samorau::ApiCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/heroku/samorau.rb

Direct Known Subclasses

DeprovisionCheck, ProvisionCheck, SsoCheck

Instance Attribute Summary

Attributes inherited from Check

#data, #screen

Instance Method Summary collapse

Methods inherited from Check

#call, #check, #error, #initialize, #run, #test, #to_proc

Constructor Details

This class inherits a constructor from Heroku::Samorau::Check

Instance Method Details

#credentialsObject



328
329
330
# File 'lib/heroku/samorau.rb', line 328

def credentials
   %w( username password ).map { |attr| data["api"][attr] }
end

#urlObject



323
324
325
326
# File 'lib/heroku/samorau.rb', line 323

def url
  env = data[:env] || 'test'
  data["api"][env].chomp("/")
end