lib/openstudio/analysis/server_api.rb in openstudio-analysis-0.4.1 vs lib/openstudio/analysis/server_api.rb in openstudio-analysis-0.4.2
- old
+ new
@@ -6,11 +6,11 @@
attr_reader :hostname
def initialize(options = {})
defaults = { hostname: 'http://localhost:8080' }
options = defaults.merge(options)
- @logger = Logger.new('faraday.log')
+ @logger = ::Logger.new('faraday.log')
@hostname = options[:hostname]
fail 'no host defined for server api class' if @hostname.nil?
@@ -77,10 +77,10 @@
success
end
def new_project(options = {})
- defaults = { project_name: "Project #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}" }
+ defaults = { project_name: "Project #{::Time.now.strftime('%Y-%m-%d %H:%M:%S')}" }
options = defaults.merge(options)
project_id = nil
# TODO: make this a display name and a machine name
project_hash = { project: { name: "#{options[:project_name]}" } }