# File lib/stella.rb, line 212 def initialize account=nil, key=nil, httparty_opts={} self.class.base_uri ENV['STELLA_HOST'] || 'https://www.blamestella.com/api/v2' @httparty_opts = httparty_opts @account = account || ENV['STELLA_ACCOUNT'] @key = key || ENV['STELLA_KEY'] unless @account.to_s.empty? || @key.to_s.empty? httparty_opts[:basic_auth] ||= { :username => @account, :password => @key } end end