Class: Groonga::QueryLog::ServerVerifier::GroongaOptions
- Inherits:
-
Object
- Object
- Groonga::QueryLog::ServerVerifier::GroongaOptions
- Defined in:
- lib/groonga/query-log/server-verifier.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Instance Method Summary collapse
- #create_client(&block) ⇒ Object
-
#initialize ⇒ GroongaOptions
constructor
A new instance of GroongaOptions.
Constructor Details
#initialize ⇒ GroongaOptions
Returns a new instance of GroongaOptions.
184 185 186 187 188 |
# File 'lib/groonga/query-log/server-verifier.rb', line 184 def initialize @host = "127.0.0.1" @port = 10041 @protocol = :gqtp end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
181 182 183 |
# File 'lib/groonga/query-log/server-verifier.rb', line 181 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
182 183 184 |
# File 'lib/groonga/query-log/server-verifier.rb', line 182 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol.
183 184 185 |
# File 'lib/groonga/query-log/server-verifier.rb', line 183 def protocol @protocol end |
Instance Method Details
#create_client(&block) ⇒ Object
190 191 192 193 194 195 |
# File 'lib/groonga/query-log/server-verifier.rb', line 190 def create_client(&block) Groonga::Client.open(:host => @host, :port => @port, :protocol => @protocol, &block) end |