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.
-
#log_enabled ⇒ Object
Returns the value of attribute log_enabled.
-
#log_file ⇒ Object
Returns the value of attribute log_file.
-
#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.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#server ⇒ Object
Returns the value of attribute server.
-
#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.
11 12 13 |
# File 'lib/neography/config.rb', line 11 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 |
#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 |
#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 |
#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 |
#server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/neography/config.rb', line 4 def server @server 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
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/neography/config.rb', line 15 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, :max_threads => @max_threads, :authentication => @authentication, :username => @username, :password => @password, :parser => @parser } end |