Module: BugshelfAPI
- Defined in:
- lib/bugshelf/bugshelf-api.rb
Defined Under Namespace
Classes: Base, Error, Issue, Project
Class Method Summary collapse
-
.authenticate(subdomain, api_key) ⇒ Object
Sets up basic authentication credentials for all the resources.
- .resources ⇒ Object
Class Method Details
.authenticate(subdomain, api_key) ⇒ Object
Sets up basic authentication credentials for all the resources.
10 11 12 13 14 15 16 17 18 |
# File 'lib/bugshelf/bugshelf-api.rb', line 10 def authenticate(subdomain, api_key) @subdomain = subdomain development = ENV['BUGS_ENV'] == 'development' tld = development ? 'dev' : 'com' schema = development ? 'http' : 'https' self::Base.site = "#{schema}://#{api_key}:***@#{subdomain}.bugshelf.#{tld}/" end |
.resources ⇒ Object
20 21 22 |
# File 'lib/bugshelf/bugshelf-api.rb', line 20 def resources @resources ||= [] end |