Class: Rafflesia::AromaticPairRecord

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/aromatic_pair_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,
  a_ring_name: :a_ring_name,
  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,
  b_ring_name: :b_ring_name,
  centroid_distance_angstrom: :centroid_distance_angstrom,
  geometry: :geometry,
  interplanar_angle_deg: :interplanar_angle_deg,
  lateral_offset_angstrom: :lateral_offset_angstrom,
  same_chain: :same_chain
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AromaticPairRecord

Returns a new instance of AromaticPairRecord.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 47

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]
  @a_ring_name = hash[:a_ring_name]
  @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]
  @b_ring_name = hash[:b_ring_name]
  @centroid_distance_angstrom = hash[:centroid_distance_angstrom]
  @geometry = hash[:geometry]
  @interplanar_angle_deg = hash[:interplanar_angle_deg]
  @lateral_offset_angstrom = hash[:lateral_offset_angstrom]
  @same_chain = hash[:same_chain]
end

Instance Attribute Details

#a_auth_chain_idObject

Returns the value of attribute a_auth_chain_id.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_auth_chain_id
  @a_auth_chain_id
end

#a_auth_positionObject

Returns the value of attribute a_auth_position.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_auth_position
  @a_auth_position
end

#a_chain_idObject

Returns the value of attribute a_chain_id.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_chain_id
  @a_chain_id
end

#a_positionObject

Returns the value of attribute a_position.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_position
  @a_position
end

#a_residueObject

Returns the value of attribute a_residue.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_residue
  @a_residue
end

#a_ring_nameObject

Returns the value of attribute a_ring_name.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def a_ring_name
  @a_ring_name
end

#b_auth_chain_idObject

Returns the value of attribute b_auth_chain_id.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_auth_chain_id
  @b_auth_chain_id
end

#b_auth_positionObject

Returns the value of attribute b_auth_position.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_auth_position
  @b_auth_position
end

#b_chain_idObject

Returns the value of attribute b_chain_id.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_chain_id
  @b_chain_id
end

#b_positionObject

Returns the value of attribute b_position.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_position
  @b_position
end

#b_residueObject

Returns the value of attribute b_residue.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_residue
  @b_residue
end

#b_ring_nameObject

Returns the value of attribute b_ring_name.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def b_ring_name
  @b_ring_name
end

#centroid_distance_angstromObject

Returns the value of attribute centroid_distance_angstrom.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def centroid_distance_angstrom
  @centroid_distance_angstrom
end

#geometryObject

Returns the value of attribute geometry.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def geometry
  @geometry
end

#interplanar_angle_degObject

Returns the value of attribute interplanar_angle_deg.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def interplanar_angle_deg
  @interplanar_angle_deg
end

#lateral_offset_angstromObject

Returns the value of attribute lateral_offset_angstrom.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def lateral_offset_angstrom
  @lateral_offset_angstrom
end

#same_chainObject

Returns the value of attribute same_chain.



28
29
30
# File 'lib/rafflesia/proteins/aromatic_pair_record.rb', line 28

def same_chain
  @same_chain
end