Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Commit

Permalink
Merge pull request #7 from firmafon/initialize-with-token
Browse files Browse the repository at this point in the history
Accept token as initialization option
  • Loading branch information
sirupsen committed Mar 21, 2012
2 parents efe7af7 + aac0d18 commit 710c9fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby_fogbugz/interface.rb
Expand Up @@ -9,6 +9,7 @@ def initialize(options = {})
@options = {}.merge(options)

raise InitializationError, "Must supply URI (e.g. https://fogbugz.company.com)" unless options[:uri]
@token = options[:token] if options[:token]
@http = Fogbugz.adapter[:http].new(:uri => options[:uri])
@xml = Fogbugz.adapter[:xml]
end
Expand Down

0 comments on commit 710c9fe

Please sign in to comment.