Class: Spider::Model::Storage::Db::Oracle::OracleNilValue

Inherits:
Object
  • Object
show all
Defined in:
lib/spiderfw/model/storage/db/adapters/oracle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ OracleNilValue

Returns a new instance of OracleNilValue.



489
490
491
492
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 489

def initialize(type)
    @type = type
    @type = Fixnum if @type == TrueClass || @type == FalseClass
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



487
488
489
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 487

def type
  @type
end

Instance Method Details

#to_sObject



494
495
496
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 494

def to_s
    'NULL'
end