Class: OCI8::Metadata::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/oci8/metadata.rb

Overview

Abstract super class for Metadata classes.

Instance Method Summary collapse

Instance Method Details

#inspectObject

:nodoc:



263
264
265
# File 'lib/oci8/metadata.rb', line 263

def inspect # :nodoc:
  "#<#{self.class.name}:(#{obj_id}) #{obj_schema}.#{obj_name}>"
end

#obj_idObject

object or schema ID



244
245
246
# File 'lib/oci8/metadata.rb', line 244

def obj_id
  __ub4(OCI_ATTR_OBJ_ID)
end

#obj_nameObject

database name or object name in a schema



249
250
251
# File 'lib/oci8/metadata.rb', line 249

def obj_name
  __text(OCI_ATTR_OBJ_NAME)
end

#obj_schemaObject

schema name where the object is located



254
255
256
# File 'lib/oci8/metadata.rb', line 254

def obj_schema
  __text(OCI_ATTR_OBJ_SCHEMA)
end

#timestampObject

The timestamp of the object



259
260
261
# File 'lib/oci8/metadata.rb', line 259

def timestamp
  __oradate(OCI_ATTR_TIMESTAMP)
end