Package intermine :: Module results :: Class ResultObject
[hide private]
[frames] | no frames]

Class ResultObject

source code

object --+
         |
        ResultObject

An object used to represent result records as returned in jsonobjects format

These objects are backed by a row of data and the class descriptor that describes the object. They allow access in standard object style:

>>> for gene in query.results():
...    print gene.symbol
...    print map(lambda x: x.name, gene.pathways)

All objects will have "id" and "type" properties. The type refers to the actual type of this object: if it is a subclass of the one requested, the subclass name will be returned. The "id" refers to the internal database id of the object, and is a guarantor of object identity.

Instance Methods [hide private]
 
__init__(self, data, cld, view=[])
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__getattr__(self, name) source code
 
_get_ref_paths(self, fld) source code
 
_fetch_attr(self, fld) source code
 
_fetch_reference(self, ref) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  id
Return the internal DB identifier of this object.

Inherited from object: __class__

Method Details [hide private]

__init__(self, data, cld, view=[])
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Property Details [hide private]

id

Return the internal DB identifier of this object. Or None if this is not an InterMine object

Get Method:
unreachable.id(self) - Return the internal DB identifier of this object.