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.



505
506
507
508
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 505

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

Instance Attribute Details

#typeObject

Returns the value of attribute type.



503
504
505
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 503

def type
  @type
end

Instance Method Details

#to_sObject



510
511
512
# File 'lib/spiderfw/model/storage/db/adapters/oracle.rb', line 510

def to_s
    'NULL'
end