Class: ODDB::CyP450Connection

Inherits:
Object
  • Object
show all
Includes:
OddbYaml, Persistence
Defined in:
ext/export/src/oddb_yaml.rb,
src/model/cyp450connection.rb,
test/test_model/cyp450connection.rb

Direct Known Subclasses

CyP450InteractionConnection, CyP450SubstrateConnection

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Constants included from OddbYaml

EXPORT_PROPERTIES, YAML_URI

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Methods included from OddbYaml

#to_yaml_properties, #to_yaml_type

Constructor Details

- (CyP450Connection) initialize

A new instance of CyP450Connection



25
26
27
28
# File 'src/model/cyp450connection.rb', line 25

def initialize
  super
  @links = []
end

Instance Attribute Details

- (Object) auc_factor

Returns the value of attribute auc_factor



23
24
25
# File 'src/model/cyp450connection.rb', line 23

def auc_factor
  @auc_factor
end

- (Object) category

Returns the value of attribute category



23
24
25
# File 'src/model/cyp450connection.rb', line 23

def category
  @category
end

- (Object) cyp450

Returns the value of attribute cyp450



23
24
25
# File 'src/model/cyp450connection.rb', line 23

def cyp450
  @cyp450
end

Returns the value of attribute links



23
24
25
# File 'src/model/cyp450connection.rb', line 23

def links
  @links
end

- (Object) pointer

Returns the value of attribute pointer



14
15
16
# File 'test/test_model/cyp450connection.rb', line 14

def pointer
  @pointer
end

- (Object) substance

Returns the value of attribute substance



23
24
25
# File 'src/model/cyp450connection.rb', line 23

def substance
  @substance
end

Instance Method Details

- (Object) adjust_types(values, app)



35
36
37
38
39
40
41
# File 'src/model/cyp450connection.rb', line 35

def adjust_types(values, app)
  if(conn_name = values[:substance])
    substance = app.substance(conn_name)
    values.store(:substance, substance)
  end
  values
end

- (Object) cyp_id



42
43
44
# File 'src/model/cyp450connection.rb', line 42

def cyp_id
  @cyp450.cyp_id if(@cyp450)
end

- (Object) init(app = nil)



29
30
31
32
33
34
# File 'src/model/cyp450connection.rb', line 29

def init(app=nil)
  unless(@pointer.last_step.size > 1)
    @pointer.append(@oid) 
  end
  @pointer
end