Class: Groonga::QueryLog::ServerVerifier::GroongaOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/query-log/server-verifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGroongaOptions

Returns a new instance of GroongaOptions.



183
184
185
186
187
# File 'lib/groonga/query-log/server-verifier.rb', line 183

def initialize
  @host     = "127.0.0.1"
  @port     = 10041
  @protocol = :gqtp
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



180
181
182
# File 'lib/groonga/query-log/server-verifier.rb', line 180

def host
  @host
end

#portObject

Returns the value of attribute port.



181
182
183
# File 'lib/groonga/query-log/server-verifier.rb', line 181

def port
  @port
end

#protocolObject

Returns the value of attribute protocol.



182
183
184
# File 'lib/groonga/query-log/server-verifier.rb', line 182

def protocol
  @protocol
end

Instance Method Details

#create_client(&block) ⇒ Object



189
190
191
192
193
194
# File 'lib/groonga/query-log/server-verifier.rb', line 189

def create_client(&block)
  Groonga::Client.open(:host     => @host,
                       :port     => @port,
                       :protocol => @protocol,
                       &block)
end