Class: Neography::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/neography/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig


13
14
15
# File 'lib/neography/config.rb', line 13

def initialize
  set_defaults
end

Instance Attribute Details

#authenticationObject

Returns the value of attribute authentication


4
5
6
# File 'lib/neography/config.rb', line 4

def authentication
  @authentication
end

#cypher_pathObject

Returns the value of attribute cypher_path


4
5
6
# File 'lib/neography/config.rb', line 4

def cypher_path
  @cypher_path
end

#directoryObject

Returns the value of attribute directory


4
5
6
# File 'lib/neography/config.rb', line 4

def directory
  @directory
end

#gremlin_pathObject

Returns the value of attribute gremlin_path


4
5
6
# File 'lib/neography/config.rb', line 4

def gremlin_path
  @gremlin_path
end

#http_receive_timeoutObject

Returns the value of attribute http_receive_timeout


4
5
6
# File 'lib/neography/config.rb', line 4

def http_receive_timeout
  @http_receive_timeout
end

#http_send_timeoutObject

Returns the value of attribute http_send_timeout


4
5
6
# File 'lib/neography/config.rb', line 4

def http_send_timeout
  @http_send_timeout
end

#log_enabledObject

Returns the value of attribute log_enabled


4
5
6
# File 'lib/neography/config.rb', line 4

def log_enabled
  @log_enabled
end

#log_fileObject

Returns the value of attribute log_file


4
5
6
# File 'lib/neography/config.rb', line 4

def log_file
  @log_file
end

#loggerObject

Returns the value of attribute logger


4
5
6
# File 'lib/neography/config.rb', line 4

def logger
  @logger
end

#max_execution_timeObject

Returns the value of attribute max_execution_time


4
5
6
# File 'lib/neography/config.rb', line 4

def max_execution_time
  @max_execution_time
end

#max_threadsObject

Returns the value of attribute max_threads


4
5
6
# File 'lib/neography/config.rb', line 4

def max_threads
  @max_threads
end

#parserObject

Returns the value of attribute parser


4
5
6
# File 'lib/neography/config.rb', line 4

def parser
  @parser
end

#passwordObject

Returns the value of attribute password


4
5
6
# File 'lib/neography/config.rb', line 4

def password
  @password
end

#persistentObject

Returns the value of attribute persistent


4
5
6
# File 'lib/neography/config.rb', line 4

def persistent
  @persistent
end

#portObject

Returns the value of attribute port


4
5
6
# File 'lib/neography/config.rb', line 4

def port
  @port
end

#protocolObject

Returns the value of attribute protocol


4
5
6
# File 'lib/neography/config.rb', line 4

def protocol
  @protocol
end

#proxyObject

Returns the value of attribute proxy


4
5
6
# File 'lib/neography/config.rb', line 4

def proxy
  @proxy
end

#serverObject

Returns the value of attribute server


4
5
6
# File 'lib/neography/config.rb', line 4

def server
  @server
end

#slow_log_thresholdObject

Returns the value of attribute slow_log_threshold


4
5
6
# File 'lib/neography/config.rb', line 4

def slow_log_threshold
  @slow_log_threshold
end

#usernameObject

Returns the value of attribute username


4
5
6
# File 'lib/neography/config.rb', line 4

def username
  @username
end

Instance Method Details

#to_hashObject


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/neography/config.rb', line 17

def to_hash
  {
    :protocol              => @protocol,
    :server                => @server,
    :port                  => @port,
    :directory             => @directory,
    :cypher_path           => @cypher_path,
    :gremlin_path          => @gremlin_path,
    :log_file              => @log_file,
    :log_enabled           => @log_enabled,
    :logger                => @logger,
    :slow_log_threshold    => @slow_log_threshold,
    :max_threads           => @max_threads,
    :authentication        => @authentication,
    :username              => @username,
    :password              => @password,
    :parser                => @parser,
    :max_execution_time    => @max_execution_time,
    :proxy                 => @proxy,
    :http_send_timeout     => @http_send_timeout,
    :http_receive_timeout  => @http_receive_timeout,
    :persistent            => @persistent
  }
end