Class: Rafflesia::SecondaryStructureResidue
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SecondaryStructureResidue
- 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
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#auth_position ⇒ Object
Returns the value of attribute auth_position.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#code ⇒ Object
Returns the value of attribute code.
-
#insertion_code ⇒ Object
Returns the value of attribute insertion_code.
-
#label ⇒ Object
Returns the value of attribute label.
-
#position ⇒ Object
Returns the value of attribute position.
-
#residue ⇒ Object
Returns the value of attribute residue.
-
#simple ⇒ Object
Returns the value of attribute simple.
Instance Method Summary collapse
-
#initialize(json) ⇒ SecondaryStructureResidue
constructor
A new instance of SecondaryStructureResidue.
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_id ⇒ Object
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_position ⇒ Object
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_id ⇒ Object
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 |
#code ⇒ Object
Returns the value of attribute code.
20 21 22 |
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20 def code @code end |
#insertion_code ⇒ Object
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 |
#label ⇒ Object
Returns the value of attribute label.
20 21 22 |
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20 def label @label end |
#position ⇒ Object
Returns the value of attribute position.
20 21 22 |
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20 def position @position end |
#residue ⇒ Object
Returns the value of attribute residue.
20 21 22 |
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20 def residue @residue end |
#simple ⇒ Object
Returns the value of attribute simple.
20 21 22 |
# File 'lib/rafflesia/proteins/secondary_structure_residue.rb', line 20 def simple @simple end |