class Onyx::Configuration

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/onyx_client/configuration.rb, line 19
def configure
  yield self if block_given?
  settings
end
host(host = nil) click to toggle source
# File lib/onyx_client/configuration.rb, line 4
def host(host = nil)
  @host = host unless host.nil?
  @host
end
path(path = nil) click to toggle source
# File lib/onyx_client/configuration.rb, line 14
def path(path = nil)
  @path = path unless path.nil?
  @path
end
port(port = nil) click to toggle source
# File lib/onyx_client/configuration.rb, line 9
def port(port = nil)
  @port = port unless port.nil?
  @port
end
settings() click to toggle source
# File lib/onyx_client/configuration.rb, line 24
def settings
  {host: @host, port: @port, path: @path}
end