Class: Heroku::Samorau::ApiCheck
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Check
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
#credentials ⇒ Object
328 329 330 |
# File 'lib/heroku/samorau.rb', line 328 def credentials %w( username password ).map { |attr| data["api"][attr] } end |
#url ⇒ Object
323 324 325 326 |
# File 'lib/heroku/samorau.rb', line 323 def url env = data[:env] || 'test' data["api"][env].chomp("/") end |