Class: Rafflesia::PeptideBondRecord

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/peptide_bond_record.rb

Constant Summary collapse

HASH_ATTRS =
{
  a_auth_chain_id: :a_auth_chain_id,
  a_auth_position: :a_auth_position,
  a_chain_id: :a_chain_id,
  a_position: :a_position,
  a_residue: :a_residue,
  b_auth_chain_id: :b_auth_chain_id,
  b_auth_position: :b_auth_position,
  b_chain_id: :b_chain_id,
  b_position: :b_position,
  b_residue: :b_residue,
  class: :class,
  is_cis: :is_cis,
  is_xaa_pro: :is_xaa_pro,
  omega_deg: :omega_deg,
  planarity_deviation_deg: :planarity_deviation_deg
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PeptideBondRecord

Returns a new instance of PeptideBondRecord.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @a_auth_chain_id = hash[:a_auth_chain_id]
  @a_auth_position = hash[:a_auth_position]
  @a_chain_id = hash[:a_chain_id]
  @a_position = hash[:a_position]
  @a_residue = hash[:a_residue]
  @b_auth_chain_id = hash[:b_auth_chain_id]
  @b_auth_position = hash[:b_auth_position]
  @b_chain_id = hash[:b_chain_id]
  @b_position = hash[:b_position]
  @b_residue = hash[:b_residue]
  @class = hash[:class]
  @is_cis = hash[:is_cis]
  @is_xaa_pro = hash[:is_xaa_pro]
  @omega_deg = hash[:omega_deg]
  @planarity_deviation_deg = hash[:planarity_deviation_deg]
end

Instance Attribute Details

#a_auth_chain_idObject

Returns the value of attribute a_auth_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def a_auth_chain_id
  @a_auth_chain_id
end

#a_auth_positionObject

Returns the value of attribute a_auth_position.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def a_auth_position
  @a_auth_position
end

#a_chain_idObject

Returns the value of attribute a_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def a_chain_id
  @a_chain_id
end

#a_positionObject

Returns the value of attribute a_position.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def a_position
  @a_position
end

#a_residueObject

Returns the value of attribute a_residue.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def a_residue
  @a_residue
end

#b_auth_chain_idObject

Returns the value of attribute b_auth_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def b_auth_chain_id
  @b_auth_chain_id
end

#b_auth_positionObject

Returns the value of attribute b_auth_position.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def b_auth_position
  @b_auth_position
end

#b_chain_idObject

Returns the value of attribute b_chain_id.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def b_chain_id
  @b_chain_id
end

#b_positionObject

Returns the value of attribute b_position.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def b_position
  @b_position
end

#b_residueObject

Returns the value of attribute b_residue.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def b_residue
  @b_residue
end

#classObject

Returns the value of attribute class.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def class
  @class
end

#is_cisObject

Returns the value of attribute is_cis.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def is_cis
  @is_cis
end

#is_xaa_proObject

Returns the value of attribute is_xaa_pro.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def is_xaa_pro
  @is_xaa_pro
end

#omega_degObject

Returns the value of attribute omega_deg.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def omega_deg
  @omega_deg
end

#planarity_deviation_degObject

Returns the value of attribute planarity_deviation_deg.



26
27
28
# File 'lib/rafflesia/proteins/peptide_bond_record.rb', line 26

def planarity_deviation_deg
  @planarity_deviation_deg
end