Class: ZCC::Zserver
- Inherits:
-
Object
- Object
- ZCC::Zserver
- Defined in:
- lib/zcc/zserver.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#explain ⇒ Object
Returns the value of attribute explain.
-
#group ⇒ Object
Returns the value of attribute group.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#options ⇒ Object
Returns the value of attribute options.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
Instance Method Summary collapse
-
#get_explain ⇒ Object
other explain information.
-
#initialize(host, port, database, group = 0, options = {'charset'=>'UTF-8'}, *args) ⇒ Zserver
constructor
A new instance of Zserver.
- #to_s ⇒ Object
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, ={'charset'=>'UTF-8'}, *args) @host = host @port = port @database = database @group = group @options = @user, @password = args end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
3 4 5 |
# File 'lib/zcc/zserver.rb', line 3 def database @database end |
#explain ⇒ Object
Returns the value of attribute explain.
4 5 6 |
# File 'lib/zcc/zserver.rb', line 4 def explain @explain end |
#group ⇒ Object
Returns the value of attribute group.
4 5 6 |
# File 'lib/zcc/zserver.rb', line 4 def group @group end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
3 4 5 |
# File 'lib/zcc/zserver.rb', line 3 def host @host end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/zcc/zserver.rb', line 4 def @options end |
#port ⇒ Object (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_explain ⇒ Object
other explain information
27 28 29 |
# File 'lib/zcc/zserver.rb', line 27 def get_explain #uses irspy? end |
#to_s ⇒ Object
31 32 33 |
# File 'lib/zcc/zserver.rb', line 31 def to_s "#{self.host}:#{self.port}/#{self.database}" end |