Class: ZCC::Zserver

Inherits:
Object
  • Object
show all
Defined in:
lib/zcc/zserver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port, database, group = 0, options = {'charset'=>'UTF-8'}, *args) ⇒ Zserver

Returns a new instance of Zserver.



6
7
8
9
10
11
12
13
# File 'lib/zcc/zserver.rb', line 6

def initialize(host, port, database, group=0, options={'charset'=>'UTF-8'}, *args)
  @host = host
  @port = port
  @database = database
  @group = group
  @options = options
  @user, @password = args
end

Instance Attribute Details

#databaseObject (readonly)

Returns the value of attribute database.



3
4
5
# File 'lib/zcc/zserver.rb', line 3

def database
  @database
end

#explainObject

Returns the value of attribute explain.



4
5
6
# File 'lib/zcc/zserver.rb', line 4

def explain
  @explain
end

#groupObject

Returns the value of attribute group.



4
5
6
# File 'lib/zcc/zserver.rb', line 4

def group
  @group
end

#hostObject (readonly)

Returns the value of attribute host.



3
4
5
# File 'lib/zcc/zserver.rb', line 3

def host
  @host
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/zcc/zserver.rb', line 4

def options
  @options
end

#portObject (readonly)

Returns the value of attribute port.



3
4
5
# File 'lib/zcc/zserver.rb', line 3

def port
  @port
end

Instance Method Details

#get_explainObject

other explain information



27
28
29
# File 'lib/zcc/zserver.rb', line 27

def get_explain #uses irspy? 
  
end

#to_sObject



31
32
33
# File 'lib/zcc/zserver.rb', line 31

def to_s 
  "#{self.host}:#{self.port}/#{self.database}"
end