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

Returns a new instance of Config.



11
12
13
# File 'lib/neography/config.rb', line 11

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

#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

#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

#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

#serverObject

Returns the value of attribute server.



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

def server
  @server
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



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