Class: Rafflesia::SecondaryStructureChain
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::SecondaryStructureChain
- Defined in:
- lib/rafflesia/proteins/secondary_structure_chain.rb
Constant Summary collapse
- HASH_ATTRS =
{ auth_chain_id: :auth_chain_id, chain_id: :chain_id, dssp: :dssp, residue_count: :residue_count, sequence: :sequence, simple: :simple }.freeze
Instance Attribute Summary collapse
-
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
-
#chain_id ⇒ Object
Returns the value of attribute chain_id.
-
#dssp ⇒ Object
Returns the value of attribute dssp.
-
#residue_count ⇒ Object
Returns the value of attribute residue_count.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#simple ⇒ Object
Returns the value of attribute simple.
Instance Method Summary collapse
-
#initialize(json) ⇒ SecondaryStructureChain
constructor
A new instance of SecondaryStructureChain.
Constructor Details
#initialize(json) ⇒ SecondaryStructureChain
Returns a new instance of SecondaryStructureChain.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @auth_chain_id = hash[:auth_chain_id] @chain_id = hash[:chain_id] @dssp = hash[:dssp] @residue_count = hash[:residue_count] @sequence = hash[:sequence] @simple = hash[:simple] end |
Instance Attribute Details
#auth_chain_id ⇒ Object
Returns the value of attribute auth_chain_id.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def auth_chain_id @auth_chain_id end |
#chain_id ⇒ Object
Returns the value of attribute chain_id.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def chain_id @chain_id end |
#dssp ⇒ Object
Returns the value of attribute dssp.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def dssp @dssp end |
#residue_count ⇒ Object
Returns the value of attribute residue_count.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def residue_count @residue_count end |
#sequence ⇒ Object
Returns the value of attribute sequence.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def sequence @sequence end |
#simple ⇒ Object
Returns the value of attribute simple.
17 18 19 |
# File 'lib/rafflesia/proteins/secondary_structure_chain.rb', line 17 def simple @simple end |