Class: Rafflesia::SecondaryStructureResidue

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

Constant Summary collapse

HASH_ATTRS =
{
  auth_chain_id: :auth_chain_id,
  auth_position: :auth_position,
  chain_id: :chain_id,
  code: :code,
  insertion_code: :insertion_code,
  label: :label,
  position: :position,
  residue: :residue,
  simple: :simple
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SecondaryStructureResidue

Returns a new instance of SecondaryStructureResidue.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 31

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]
  @code = hash[:code]
  @insertion_code = hash[:insertion_code]
  @label = hash[:label]
  @position = hash[:position]
  @residue = hash[:residue]
  @simple = hash[:simple]
end

Instance Attribute Details

#auth_chain_idObject

Returns the value of attribute auth_chain_id.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def auth_chain_id
  @auth_chain_id
end

#auth_positionObject

Returns the value of attribute auth_position.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def auth_position
  @auth_position
end

#chain_idObject

Returns the value of attribute chain_id.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def chain_id
  @chain_id
end

#codeObject

Returns the value of attribute code.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def code
  @code
end

#insertion_codeObject

Returns the value of attribute insertion_code.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def insertion_code
  @insertion_code
end

#labelObject

Returns the value of attribute label.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def label
  @label
end

#positionObject

Returns the value of attribute position.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def position
  @position
end

#residueObject

Returns the value of attribute residue.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def residue
  @residue
end

#simpleObject

Returns the value of attribute simple.



20
21
22
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20

def simple
  @simple
end