Class: Rafflesia::BetaTurnRecord

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

Constant Summary collapse

HASH_ATTRS =
{
  auth_chain_id: :auth_chain_id,
  ca_distance_angstrom: :ca_distance_angstrom,
  chain_id: :chain_id,
  cis_proline: :cis_proline,
  end_position: :end_position,
  phi_i1_deg: :phi_i_1_deg,
  phi_i2_deg: :phi_i_2_deg,
  positions: :positions,
  psi_i1_deg: :psi_i_1_deg,
  psi_i2_deg: :psi_i_2_deg,
  residues: :residues,
  start_position: :start_position,
  type: :type
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ BetaTurnRecord

Returns a new instance of BetaTurnRecord.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 39

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @auth_chain_id = hash[:auth_chain_id]
  @ca_distance_angstrom = hash[:ca_distance_angstrom]
  @chain_id = hash[:chain_id]
  @cis_proline = hash[:cis_proline]
  @end_position = hash[:end_position]
  @phi_i_1_deg = hash[:phi_i1_deg]
  @phi_i_2_deg = hash[:phi_i2_deg]
  @positions = (hash[:positions] || [])
  @psi_i_1_deg = hash[:psi_i1_deg]
  @psi_i_2_deg = hash[:psi_i2_deg]
  @residues = (hash[:residues] || [])
  @start_position = hash[:start_position]
  @type = hash[:type]
end

Instance Attribute Details

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def auth_chain_id
  @auth_chain_id
end

#ca_distance_angstromObject

Returns the value of attribute ca_distance_angstrom.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def ca_distance_angstrom
  @ca_distance_angstrom
end

#chain_idObject

Returns the value of attribute chain_id.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def chain_id
  @chain_id
end

#cis_prolineObject

Returns the value of attribute cis_proline.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def cis_proline
  @cis_proline
end

#end_positionObject

Returns the value of attribute end_position.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def end_position
  @end_position
end

#phi_i_1_degObject

Returns the value of attribute phi_i_1_deg.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def phi_i_1_deg
  @phi_i_1_deg
end

#phi_i_2_degObject

Returns the value of attribute phi_i_2_deg.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def phi_i_2_deg
  @phi_i_2_deg
end

#positionsObject

Returns the value of attribute positions.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def positions
  @positions
end

#psi_i_1_degObject

Returns the value of attribute psi_i_1_deg.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def psi_i_1_deg
  @psi_i_1_deg
end

#psi_i_2_degObject

Returns the value of attribute psi_i_2_deg.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def psi_i_2_deg
  @psi_i_2_deg
end

#residuesObject

Returns the value of attribute residues.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def residues
  @residues
end

#start_positionObject

Returns the value of attribute start_position.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def start_position
  @start_position
end

#typeObject

Returns the value of attribute type.



24
25
26
# File 'lib/rafflesia/proteins/beta_turn_record.rb', line 24

def type
  @type
end