class Qbrick::Engine
Public Instance Methods
app_config()
click to toggle source
# File lib/qbrick/engine.rb, line 27 def app_config Rails.application.config end
host()
click to toggle source
# File lib/qbrick/engine.rb, line 40 def host return hosts.first unless app_config.respond_to? :host app_config.host end
hosts()
click to toggle source
# File lib/qbrick/engine.rb, line 31 def hosts [Socket.gethostname, 'localhost'].tap do |result| result.concat [app_config.hosts].flatten if app_config.respond_to? :hosts result.concat [app_config.host].flatten if app_config.respond_to? :host result.compact! result.uniq! end end
port()
click to toggle source
# File lib/qbrick/engine.rb, line 52 def port return 80 unless app_config.respond_to? :port app_config.port end
scheme()
click to toggle source
# File lib/qbrick/engine.rb, line 46 def scheme return 'http' unless app_config.respond_to? :scheme app_config.scheme end