Module: RubyVolt

Defined in:
lib/ruby_volt.rb,
lib/ruby_volt/base.rb,
lib/ruby_volt/meta.rb,
lib/ruby_volt/helper.rb,
lib/ruby_volt/message.rb,
lib/ruby_volt/version.rb,
lib/ruby_volt/response.rb,
lib/ruby_volt/data_type.rb,
lib/ruby_volt/connection.rb,
lib/ruby_volt/exceptions.rb,
lib/ruby_volt/volt_table.rb,
lib/ruby_volt/read_partial.rb,
lib/ruby_volt/meta/geography.rb,
lib/ruby_volt/data_type/basic.rb,
lib/ruby_volt/data_type/complex.rb,
lib/ruby_volt/data_type/compound.rb,
lib/ruby_volt/data_type/extensions.rb,
lib/ruby_volt/message/login_message.rb,
lib/ruby_volt/data_type/basic/string.rb,
lib/ruby_volt/data_type/app_data_type.rb,
lib/ruby_volt/response/login_response.rb,
lib/ruby_volt/data_type/compound/array.rb,
lib/ruby_volt/data_type/basic/geography.rb,
lib/ruby_volt/data_type/basic/varbinary.rb,
lib/ruby_volt/data_type/basic/fixed_size.rb,
lib/ruby_volt/message/invocation_request.rb,
lib/ruby_volt/data_type/complex/parameter.rb,
lib/ruby_volt/data_type/complex/volt_table.rb,
lib/ruby_volt/response/invocation_response.rb,
lib/ruby_volt/data_type/basic/fixed_size/null.rb,
lib/ruby_volt/data_type/complex/parameter_set.rb,
lib/ruby_volt/data_type/basic/fixed_size/float.rb,
lib/ruby_volt/data_type/basic/fixed_size/decimal.rb,
lib/ruby_volt/data_type/basic/fixed_size/timestamp.rb,
lib/ruby_volt/data_type/app_data_type/wire_type_info.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type.rb,
lib/ruby_volt/data_type/complex/serializable_exception.rb,
lib/ruby_volt/data_type/basic/fixed_size/geography_point.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/byte.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/long.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/short.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/u_byte.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/u_long.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/integer.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/u_short.rb,
lib/ruby_volt/data_type/basic/fixed_size/integer_type/u_integer.rb,
lib/ruby_volt/data_type/app_data_type/procedure_call_status_code.rb

Defined Under Namespace

Modules: Helper, Meta Classes: AuthenticationRejected, Base, ClientDataInvalid, Connection, ConnectionLostStatusCode, ConstraintFailureException, DataType, EEException, GracefulFailureStatusCode, InvalidLoginMessage, InvocationRequest, InvocationResponse, LoginMessage, LoginResponse, Message, ProcedureCallException, ReadPartial, ReadTimeout, Response, SQLException, SendMsgTimeout, SerializableException, SocketDialogTimeout, SuccessStatusCode, TooLongToTransmitCredentials, TooManyConnections, UnexpectedFailureStatusCode, UserAbortStatusCode, VoltTable

Constant Summary collapse

DEFAULT_HOSTNAME =
"localhost"
DEFAULT_PORT =
21212
LOGIN_PROTOCOL =
1
PROCEDURE_PROTOCOL =
0
SERVICE_NAME =
"database"
DEFAULT_TIMEOUT =
8
CONNECT_TIMEOUT =
8
PROCEDURE_TIMEOUT =
8
VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.config(const, value) ⇒ Object



19
20
21
22
# File 'lib/ruby_volt.rb', line 19

def self.config(const, value)
  remove_const(const) if const_defined?(const)
  const_set(const, value)
end