Class: Rsconn::TypecastResult
- Inherits:
-
Object
- Object
- Rsconn::TypecastResult
- Defined in:
- lib/rsconn/typecast_result.rb
Constant Summary collapse
- TYPE_BOOLEAN =
16
- TYPE_BIGINT =
20
- TYPE_SMALLINT =
21
- TYPE_INTEGER =
23
- TYPE_OID =
26
- TYPE_REAL =
700
- TYPE_DOUBLE_PRECISION =
701
- TYPE_MONEY =
790
- TYPE_NUMERIC =
1700
- TYPE_DATE =
1082
- TYPE_TIMESTAMP_WITHOUT_TIME_ZONE =
1114
- TYPE_TIMESTAMP_WITH_TIME_ZONE =
1184
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(uncast_result) ⇒ TypecastResult
constructor
A new instance of TypecastResult.
Constructor Details
#initialize(uncast_result) ⇒ TypecastResult
Returns a new instance of TypecastResult.
21 22 23 24 |
# File 'lib/rsconn/typecast_result.rb', line 21 def initialize(uncast_result) @uncast_result = uncast_result @result = uncast_result.map {|row| typecast_row(row) } end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/rsconn/typecast_result.rb', line 6 def result @result end |