Class: ODPI::BindType::Integer

Inherits:
Base
  • Object
show all
Defined in:
lib/odpi/bindtype.rb

Constant Summary collapse

TYPES =
[:number, :bytes]

Instance Attribute Summary

Attributes inherited from Base

#raw_var

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#[], #[]=, #get, #set, to_bindclass

Constructor Details

#initialize(conn, value, type, params, array_size, is_array) ⇒ Integer

Returns a new instance of Integer.


249
250
251
# File 'lib/odpi/bindtype.rb', line 249

def initialize(conn, value, type, params, array_size, is_array)
  super(conn, array_size, 0, false, is_array, nil)
end

Class Method Details

.convert_in(conn, val) ⇒ Object


253
254
255
# File 'lib/odpi/bindtype.rb', line 253

def self.convert_in(conn, val)
  val.to_i.to_s
end

.convert_out(conn, val) ⇒ Object


257
258
259
# File 'lib/odpi/bindtype.rb', line 257

def self.convert_out(conn, val)
  val.to_i
end