Class: Neography::Config
- Inherits:
-
Object
- Object
- Neography::Config
- Defined in:
- lib/neography/config.rb
Instance Attribute Summary collapse
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#cypher_path ⇒ Object
Returns the value of attribute cypher_path.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#gremlin_path ⇒ Object
Returns the value of attribute gremlin_path.
-
#http_receive_timeout ⇒ Object
Returns the value of attribute http_receive_timeout.
-
#http_send_timeout ⇒ Object
Returns the value of attribute http_send_timeout.
-
#log_enabled ⇒ Object
Returns the value of attribute log_enabled.
-
#log_file ⇒ Object
Returns the value of attribute log_file.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_execution_time ⇒ Object
Returns the value of attribute max_execution_time.
-
#max_threads ⇒ Object
Returns the value of attribute max_threads.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#password ⇒ Object
Returns the value of attribute password.
-
#persistent ⇒ Object
Returns the value of attribute persistent.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#server ⇒ Object
Returns the value of attribute server.
-
#slow_log_threshold ⇒ Object
Returns the value of attribute slow_log_threshold.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 |
# File 'lib/neography/config.rb', line 13 def initialize set_defaults end |
Instance Attribute Details
#authentication ⇒ Object
Returns the value of attribute authentication.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def authentication @authentication end |
#cypher_path ⇒ Object
Returns the value of attribute cypher_path.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def cypher_path @cypher_path end |
#directory ⇒ Object
Returns the value of attribute directory.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def directory @directory end |
#gremlin_path ⇒ Object
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_timeout ⇒ Object
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_timeout ⇒ Object
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_enabled ⇒ Object
Returns the value of attribute log_enabled.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def log_enabled @log_enabled end |
#log_file ⇒ Object
Returns the value of attribute log_file.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def log_file @log_file end |
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def logger @logger end |
#max_execution_time ⇒ Object
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_threads ⇒ Object
Returns the value of attribute max_threads.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def max_threads @max_threads end |
#parser ⇒ Object
Returns the value of attribute parser.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def parser @parser end |
#password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def password @password end |
#persistent ⇒ Object
Returns the value of attribute persistent.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def persistent @persistent end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def protocol @protocol end |
#proxy ⇒ Object
Returns the value of attribute proxy.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def proxy @proxy end |
#server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def server @server end |
#slow_log_threshold ⇒ Object
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 |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def username @username end |
Instance Method Details
#to_hash ⇒ Object
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 |