lib/arii.rb in arii-1.2.1 vs lib/arii.rb in arii-1.2.2
- old
+ new
@@ -9,35 +9,34 @@
require 'arii/agent'
require 'arii/version'
require 'arii/client'
module ARII
- class Config
+ class Config
+ def self.set_log log
+ @@log = log
+ end
- def self.set_log log
- @@log = log
- end
+ def self.set_host host
+ host << '/' unless host.end_with?('/')
+ @@host = host
+ end
- def self.set_host host
- host << '/' unless host.end_with?('/')
- @@host = host
- end
+ def self.set_access_token api_key
+ @@access_token = api_key
+ end
- def self.set_access_token api_key
- @@access_token = api_key
- end
+ def self.log
+ @@log
+ end
- def self.log
- @@log
- end
+ def self.host
+ @@host
+ end
- def self.host
- @@host
- end
-
- def self.access_token
- @@access_token
- end
- end
+ def self.access_token
+ @@access_token
+ end
+ end
end