Class: Rafflesia::RotamerResidueRecord

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

Constant Summary collapse

HASH_ATTRS =
{
  auth_chain_id: :auth_chain_id,
  auth_position: :auth_position,
  chain_id: :chain_id,
  chi1_deg: :chi_1_deg,
  chi1_is_staggered: :chi_1_is_staggered,
  chi1_rotamer: :chi_1_rotamer,
  chi2_deg: :chi_2_deg,
  insertion_code: :insertion_code,
  position: :position,
  residue: :residue
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RotamerResidueRecord

Returns a new instance of RotamerResidueRecord.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @auth_chain_id = hash[:auth_chain_id]
  @auth_position = hash[:auth_position]
  @chain_id = hash[:chain_id]
  @chi_1_deg = hash[:chi1_deg]
  @chi_1_is_staggered = hash[:chi1_is_staggered]
  @chi_1_rotamer = hash[:chi1_rotamer]
  @chi_2_deg = hash[:chi2_deg]
  @insertion_code = hash[:insertion_code]
  @position = hash[:position]
  @residue = hash[:residue]
end

Instance Attribute Details

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def auth_chain_id
  @auth_chain_id
end

#auth_positionObject

Returns the value of attribute auth_position.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def chain_id
  @chain_id
end

#chi_1_degObject

Returns the value of attribute chi_1_deg.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def chi_1_deg
  @chi_1_deg
end

#chi_1_is_staggeredObject

Returns the value of attribute chi_1_is_staggered.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def chi_1_is_staggered
  @chi_1_is_staggered
end

#chi_1_rotamerObject

Returns the value of attribute chi_1_rotamer.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def chi_1_rotamer
  @chi_1_rotamer
end

#chi_2_degObject

Returns the value of attribute chi_2_deg.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def chi_2_deg
  @chi_2_deg
end

#insertion_codeObject

Returns the value of attribute insertion_code.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def insertion_code
  @insertion_code
end

#positionObject

Returns the value of attribute position.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def position
  @position
end

#residueObject

Returns the value of attribute residue.



21
22
23
# File 'lib/rafflesia/proteins/rotamer_residue_record.rb', line 21

def residue
  @residue
end